edu.stanford.nlp.international.arabic.pipeline
Class ATBArabicDataset.ArabicRawTreeNormalizer

java.lang.Object
  extended by 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.


Field Summary
protected  Filter<Tree> aOverAFilter
           
protected  Buckwalter encodingMap
           
protected  PrintWriter flatFile
           
protected  Filter<Tree> nullFilter
           
protected  PrintWriter outfile
           
protected  TreeFactory tf
           
protected  TreebankLanguagePack tlp
           
 
Constructor Summary
ATBArabicDataset.ArabicRawTreeNormalizer(PrintWriter outFile, PrintWriter flatFile)
           
 
Method Summary
 Tree arabicAoverAFilter(Tree t)
           
protected  void processPreterminal(Tree node)
           
 void visitTree(Tree t)
          Does whatever one needs to do to a particular parse tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ATBArabicDataset.ArabicRawTreeNormalizer

public ATBArabicDataset.ArabicRawTreeNormalizer(PrintWriter outFile,
                                                PrintWriter flatFile)
Method Detail

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