public class ArabicTreeNormalizer extends BobChrisTreeNormalizer
Modifier and Type | Class and Description |
---|---|
static class |
ArabicTreeNormalizer.ArabicEmptyFilter
Remove traces and pronoun deletion markers.
|
BobChrisTreeNormalizer.AOverAFilter, BobChrisTreeNormalizer.EmptyFilter
aOverAFilter, emptyFilter, tlp
Constructor and Description |
---|
ArabicTreeNormalizer() |
ArabicTreeNormalizer(boolean retainNPTmp) |
ArabicTreeNormalizer(boolean retainNPTmp,
boolean markPRDverb) |
ArabicTreeNormalizer(boolean retainNPTmp,
boolean markPRDverb,
boolean changeNoLabels) |
ArabicTreeNormalizer(boolean retainNPTmp,
boolean markPRDverb,
boolean changeNoLabels,
boolean retainNPSbj,
boolean retainPPClr) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
normalizeNonterminal(java.lang.String category)
Normalizes a nonterminal contents.
|
Tree |
normalizeWholeTree(Tree tree,
TreeFactory tf)
Normalize a whole tree -- one can assume that this is the
root.
|
cleanUpLabel, normalizeTerminal, transformTree
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public ArabicTreeNormalizer(boolean retainNPTmp, boolean markPRDverb, boolean changeNoLabels, boolean retainNPSbj, boolean retainPPClr)
public ArabicTreeNormalizer(boolean retainNPTmp, boolean markPRDverb, boolean changeNoLabels)
public ArabicTreeNormalizer(boolean retainNPTmp, boolean markPRDverb)
public ArabicTreeNormalizer(boolean retainNPTmp)
public ArabicTreeNormalizer()
public 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)