as_tree: Convert a Parsed String to Tree

Description Usage Arguments Value See Also Examples

Description

Convert a parsed string to a tree structure. A wrapper for Tree_parse.

Usage

1

Arguments

x

A vector from parser.

...

ignored.

Value

Returns a list of trees from Tree_parse.

See Also

Tree_parse

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## 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
)

parse_ann <- parse_annotator()
x <- parser(txt, parse_ann)
as_tree(x)

## End(Not run)

trinker/parser documentation built on May 31, 2019, 9:41 p.m.