Creating a hierplane object from text is made possible by employing
the spacyr
package. More specifically, the spacyr::spacy_parse()
function
is used to tokenize and tag the sentence(s) provided. Note that this
functionality requires the spacyr
package.
hp_spacyr( .data, node_type = "dep_", link = "dep_", attributes = spacyr_default_attributes(), styles = NULL, ... )
.data | A sentence. |
---|---|
node_type |
|
link |
|
attributes |
|
styles | Assign styles to hierplane. |
... | Additional parameters to pass to |
If more than one sentence is detected in the input text, a list of hierplane objects is returned.