|
|||||||||
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.
Field Summary | |
---|---|
static String |
morphBoundary
|
static String |
puncTag
|
static Set<String> |
reservedWords
|
static String |
segMarker
|
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,
String separator)
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 |
Field Detail |
---|
public static String segMarker
public static final String morphBoundary
public static final String puncTag
public static final Set<String> reservedWords
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, String separator)
separator
t
- - A parse treeremoveEscaping
- - If true, remove LDC escape characters. Otherwise, leave them.separator
- Word/tag separator
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |