public class SpanishTreeNormalizer extends BobChrisTreeNormalizer
BobChrisTreeNormalizer.AOverAFilter, BobChrisTreeNormalizer.EmptyFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EMPTY_LEAF_VALUE |
static java.lang.String |
MW_PHRASE_TAG
Tag provided to constituents which contain words from MW tokens
|
static java.lang.String |
MW_TAG
Tag provided to words which are extracted from a multi-word token
into their own independent nodes.
|
aOverAFilter, tlp
Constructor and Description |
---|
SpanishTreeNormalizer() |
SpanishTreeNormalizer(boolean simplifiedTagset,
boolean aggressiveNormalization,
boolean retainNER) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
normalizeTerminal(java.lang.String word)
Normalizes a leaf contents.
|
Tree |
normalizeWholeTree(Tree tree,
TreeFactory tf)
Normalize a whole tree -- one can assume that this is the
root.
|
Tree |
normalizeWholeTree(Tree tree,
TreeFactory tf,
boolean expandElisions,
boolean expandConmigo) |
cleanUpLabel, normalizeNonterminal, transformTree
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public static final java.lang.String MW_TAG
public static final java.lang.String MW_PHRASE_TAG
public static final java.lang.String EMPTY_LEAF_VALUE
public SpanishTreeNormalizer()
public SpanishTreeNormalizer(boolean simplifiedTagset, boolean aggressiveNormalization, boolean retainNER)
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 normalizeWholeTree(Tree tree, TreeFactory tf, boolean expandElisions, boolean expandConmigo)
public java.lang.String normalizeTerminal(java.lang.String word)
BobChrisTreeNormalizer
normalizeTerminal
in class BobChrisTreeNormalizer
word
- The String that decorates the leaf