public class CharacterLevelTagExtender extends BobChrisTreeNormalizer implements TreeTransformer
BobChrisTreeNormalizer.AOverAFilter, BobChrisTreeNormalizer.EmptyFilteraOverAFilter, emptyFilter, tlp| Constructor and Description |
|---|
CharacterLevelTagExtender() |
CharacterLevelTagExtender(TreebankLanguagePack tlp) |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
for testing -- CURRENTLY BROKEN!!!
|
Tree |
normalizeWholeTree(Tree tree,
TreeFactory tf)
Normalize a whole tree -- one can assume that this is the
root.
|
Tree |
transformTree(Tree tree)
Does whatever one needs to do to a particular tree.
|
Tree |
untransformTree(Tree tree) |
cleanUpLabel, normalizeNonterminal, normalizeTerminalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic CharacterLevelTagExtender()
public CharacterLevelTagExtender(TreebankLanguagePack tlp)
public Tree normalizeWholeTree(Tree tree, TreeFactory tf)
BobChrisTreeNormalizernormalizeWholeTree in class BobChrisTreeNormalizertree - The tree to be normalizedtf - the TreeFactory to create new nodes (if needed)public Tree transformTree(Tree tree)
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 TreeTransformertransformTree in class BobChrisTreeNormalizertree - A tree. Classes implementing this interface can assume
that the tree passed in is not null.Treepublic static void main(java.lang.String[] args)
throws java.io.IOException
args - input dir and output filenamejava.io.IOException