public class FrenchTreeNormalizer extends BobChrisTreeNormalizer
Modifier and Type | Class and Description |
---|---|
static class |
FrenchTreeNormalizer.FrenchAOverAFilter |
BobChrisTreeNormalizer.AOverAFilter, BobChrisTreeNormalizer.EmptyFilter
aOverAFilter, emptyFilter, tlp
Constructor and Description |
---|
FrenchTreeNormalizer(boolean ccTagset) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
normalizeNonterminal(java.lang.String category)
Normalizes a nonterminal contents.
|
java.lang.String |
normalizeTerminal(java.lang.String terminal)
Normalizes a leaf contents.
|
Tree |
normalizeWholeTree(Tree tree,
TreeFactory tf)
Normalize a whole tree -- one can assume that this is the
root.
|
cleanUpLabel, transformTree
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public java.lang.String normalizeTerminal(java.lang.String terminal)
BobChrisTreeNormalizer
normalizeTerminal
in class BobChrisTreeNormalizer
terminal
- The String that decorates the leafpublic java.lang.String normalizeNonterminal(java.lang.String category)
BobChrisTreeNormalizer
normalizeNonterminal
in class BobChrisTreeNormalizer
category
- The String that decorates this nonterminal nodepublic 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)