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