edu.stanford.nlp.international.arabic.pipeline
Class ATBArabicDataset.ArabicRawTreeNormalizer
java.lang.Object
edu.stanford.nlp.international.arabic.pipeline.ATBArabicDataset.ArabicRawTreeNormalizer
- All Implemented Interfaces:
- TreeVisitor
- Enclosing class:
- ATBArabicDataset
protected class ATBArabicDataset.ArabicRawTreeNormalizer
- extends Object
- implements TreeVisitor
A TreeVisitor
for raw ATB trees. This class performs
minimal pre-processing (for example, it does not prune traces). It also provides
a facility via enableIBMArabicEscaping
for sub-classes to process
IBM Arabic parse trees.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
encodingMap
protected final Buckwalter encodingMap
outfile
protected final PrintWriter outfile
flatFile
protected final PrintWriter flatFile
nullFilter
protected final Filter<Tree> nullFilter
aOverAFilter
protected final Filter<Tree> aOverAFilter
tf
protected final TreeFactory tf
tlp
protected final TreebankLanguagePack tlp
ATBArabicDataset.ArabicRawTreeNormalizer
public ATBArabicDataset.ArabicRawTreeNormalizer(PrintWriter outFile,
PrintWriter flatFile)
processPreterminal
protected void processPreterminal(Tree node)
arabicAoverAFilter
public Tree arabicAoverAFilter(Tree t)
visitTree
public void visitTree(Tree t)
- Description copied from interface:
TreeVisitor
- Does whatever one needs to do to a particular parse tree.
- Specified by:
visitTree
in interface TreeVisitor
- Parameters:
t
- A tree. Classes implementing this interface can assume
that the tree passed in is not null
.
Stanford NLP Group