edu.stanford.nlp.international.arabic
Class Buckwalter.TreeConverter
java.lang.Object
edu.stanford.nlp.international.arabic.Buckwalter.TreeConverter
- All Implemented Interfaces:
- TreeVisitor, Serializable
- Enclosing class:
- Buckwalter
public static class Buckwalter.TreeConverter
- extends Object
- implements TreeVisitor, Serializable
Converts Penn-style trees from Buckwalter to utf-8 Arabic and back.
This is a TreeMangler. It changes the trees that it visits.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Buckwalter.TreeConverter
public Buckwalter.TreeConverter(boolean a2b)
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
.
printDebug
public void printDebug()
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
Stanford NLP Group