public class CTBErrorCorrectingTreeNormalizer extends BobChrisTreeNormalizer
Implementation note: This now loads CharacterLevelTagExtender by reflection if that option is invoked.
| Modifier and Type | Class and Description |
|---|---|
static class |
CTBErrorCorrectingTreeNormalizer.CTBErrorCorrectingTreeReaderFactory
So you can create a TreeReaderFactory using this TreeNormalizer easily by reflection.
|
BobChrisTreeNormalizer.AOverAFilter, BobChrisTreeNormalizer.EmptyFilteraOverAFilter, emptyFilter, tlp| Constructor and Description |
|---|
CTBErrorCorrectingTreeNormalizer()
Constructor with all of the options of the other constructor false
|
CTBErrorCorrectingTreeNormalizer(boolean splitNPTMP,
boolean splitPPTMP,
boolean splitXPTMP,
boolean charTags)
Build a CTBErrorCorrectingTreeNormalizer.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
cleanUpLabel(java.lang.String label)
Remove things like hyphened functional tags and equals from the
end of a node label.
|
Tree |
normalizeWholeTree(Tree tree,
TreeFactory tf)
Normalize a whole tree -- one can assume that this is the
root.
|
normalizeNonterminal, normalizeTerminal, transformTreepublic CTBErrorCorrectingTreeNormalizer()
public CTBErrorCorrectingTreeNormalizer(boolean splitNPTMP,
boolean splitPPTMP,
boolean splitXPTMP,
boolean charTags)
splitNPTMP - Temporal annotation on NPssplitPPTMP - Temporal annotation on PPssplitXPTMP - Temporal annotation on any phrase marked in CTBcharTags - Whether you wish to push POS tags down on to the
characters of a word (for unsegmented text)protected java.lang.String cleanUpLabel(java.lang.String label)
cleanUpLabel in class BobChrisTreeNormalizerlabel - The label to be cleaned uppublic Tree normalizeWholeTree(Tree tree, TreeFactory tf)
BobChrisTreeNormalizernormalizeWholeTree in class BobChrisTreeNormalizertree - The tree to be normalizedtf - the TreeFactory to create new nodes (if needed)