public class TreeAnnotator extends Object implements TreeTransformer
Constructor and Description |
---|
TreeAnnotator(HeadFinder hf,
TreebankLangParserParams tlpp,
Options op) |
Modifier and Type | Method and Description |
---|---|
Tree |
transformTree(Tree t)
Do the category splitting of the tree passed in.
|
public TreeAnnotator(HeadFinder hf, TreebankLangParserParams tlpp, Options op)
public Tree transformTree(Tree t)
transformTree
in interface TreeTransformer
t
- The tree to be annotated. This can be any tree with a
value()
stored in Labels. The tree is assumed to have
preterminals that are parts of speech.