public class TreeAnnotator extends java.lang.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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
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.