|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.international.arabic.ATBTreeUtils
public class ATBTreeUtils
Various static convenience methods for processing Arabic parse trees.
Method Summary | |
---|---|
static String |
escape(String s)
Escapes tokens from flat strings that are reserved for usage in the ATB. |
static String |
flattenTree(Tree t)
Returns the string associated with the input parse tree. |
static void |
main(String[] args)
|
static String |
taggedStringFromTree(Tree t,
boolean removeEscaping)
Converts a parse tree into a string of tokens. |
static String |
unEscape(String s)
Reverts escaping from a flat string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String escape(String s)
s
- - An Arabic string
public static String unEscape(String s)
s
- - An Arabic string
public static String flattenTree(Tree t)
t
- - A parse tree
public static String taggedStringFromTree(Tree t, boolean removeEscaping)
TaggedWord.setDivider(String)
t
- - A parse treeremoveEscaping
- - If true, remove LDC escape characters. Otherwise, leave them.
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |