public class EnglishPTBTreebankCorrector extends java.lang.Object implements TreeTransformer, TreebankTransformer
Treebanks via a command like:
java edu.stanford.nlp.trees.Treebanks -correct -pennPrint LDC99T42-Treebank3/parsed/mrg/wsj 200-2199 > train-fixed
| Constructor and Description |
|---|
EnglishPTBTreebankCorrector() |
| Modifier and Type | Method and Description |
|---|---|
Tree |
transformTree(Tree t)
Does whatever one needs to do to a particular tree.
|
MemoryTreebank |
transformTrees(Treebank tb)
Fix all the English Penn Treebank errors, or at least some of them (!).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic Tree transformTree(Tree t)
TreeTransformerTree, and could itself
work recursively, but the canonical usage is to invoke this method
via the Tree.transform() method, which will apply the
transformer in a bottom-up manner to each local Tree,
and hence the implementation of TreeTransformer should
merely examine and change a local (one-level) Tree.transformTree in interface TreeTransformert - A tree. Classes implementing this interface can assume
that the tree passed in is not null.Treepublic MemoryTreebank transformTrees(Treebank tb)
transformTrees in interface TreebankTransformer