Description Usage Arguments Value See Also Examples
Convert a parsed string to a tree structure. A wrapper for
Tree_parse
.
1 |
x |
A vector from |
... |
ignored. |
Returns a list of trees from Tree_parse
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
txt <- c(
"Really, I like chocolate because it is good. It smells great.",
"Robots are rather evil and most are devoid of decency.",
"He is my friend.",
"Clifford the big red dog ate my lunch.",
"Professor Johns can not teach",
"",
NA
)
if(!exists('parse_ann')) {
parse_ann <- parse_annotator()
}
x <- parser(txt, parse_ann)
as_tree(x)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.