public interface TreeVisitor
Tree. It typically is called iteratively over trees in a
Treebank. The convention is for
TreeVisitorimplementing classes not to affect
Treeinstances they operate on, but to accomplish things via side effects (like counting statistics over trees, etc.).
|Modifier and Type||Method and Description|
Does whatever one needs to do to a particular parse tree.
void visitTree(Tree t)
t- A tree. Classes implementing this interface can assume that the tree passed in is not
Stanford NLP Group