|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.parser.lexparser.TreeAnnotator
public class TreeAnnotator
Performs non-language specific annotation of Trees.
Constructor Summary | |
---|---|
TreeAnnotator(HeadFinder hf,
TreebankLangParserParams tlpp)
|
Method Summary | |
---|---|
Tree |
transformTree(Tree t)
Do the category splitting of the tree passed in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeAnnotator(HeadFinder hf, TreebankLangParserParams tlpp)
Method Detail |
---|
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.
- Returns:
- The annotated version of the Tree (which is a completely
separate Tree with new tree structure and new labels). The
non-leaf nodes of the tree will be CategoryWordTag objects.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |