|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.parser.lexparser.TreePrint
A class for customizing the print method for a
edu.stanford.nlp.trees.Tree
as the output of the
parser.
Field Summary | |
static String |
headMark
|
static String[] |
outputTreeFormats
|
Constructor Summary | |
TreePrint(String format)
|
|
TreePrint(String format,
HeadFinder hf)
|
Method Summary | |
HeadFinder |
getHeadFinder()
|
Tree |
headMarkNodes(Tree t)
|
void |
printTree(Tree t)
prints the tree to the default PrintWriter |
void |
printTree(Tree t,
PrintWriter pw)
prints the tree. |
void |
setHeadFinder(HeadFinder hf)
Set the headfinder to be used for lexicalizing trees. |
void |
setHeadMarkNodes(boolean b)
sets whether or not to mark the head daughter of each non-leaf node |
void |
setLexicalize(boolean b)
sets whether or not to lexicalize the output format of the tree. |
void |
setPrintDepsSet(boolean b)
Set whether or not to print the dependency set for the tree |
void |
setPrintWriter(PrintWriter pw)
Sets the default print writer for printing trees with the instance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String[] outputTreeFormats
public static final String headMark
Constructor Detail |
public TreePrint(String format)
public TreePrint(String format, HeadFinder hf)
Method Detail |
public void printTree(Tree t)
public void printTree(Tree t, PrintWriter pw)
public void setLexicalize(boolean b)
public void setHeadMarkNodes(boolean b)
public void setPrintDepsSet(boolean b)
public void setHeadFinder(HeadFinder hf)
CollinsHeadFinder
is used.
public HeadFinder getHeadFinder()
public void setPrintWriter(PrintWriter pw)
public Tree headMarkNodes(Tree t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |