public class CharacterLevelTagExtender extends BobChrisTreeNormalizer implements TreeTransformer
BobChrisTreeNormalizer.AOverAFilter, BobChrisTreeNormalizer.EmptyFilter
aOverAFilter, 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, normalizeTerminal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public CharacterLevelTagExtender()
public CharacterLevelTagExtender(TreebankLanguagePack tlp)
public Tree normalizeWholeTree(Tree tree, TreeFactory tf)
BobChrisTreeNormalizer
normalizeWholeTree
in class BobChrisTreeNormalizer
tree
- The tree to be normalizedtf
- the TreeFactory to create new nodes (if needed)public Tree transformTree(Tree tree)
TreeTransformer
Tree
, 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 TreeTransformer
transformTree
in class BobChrisTreeNormalizer
tree
- A tree. Classes implementing this interface can assume
that the tree passed in is not null
.Tree
public static void main(java.lang.String[] args) throws java.io.IOException
args
- input dir and output filenamejava.io.IOException