|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.pipeline.ParserAnnotatorUtils
public class ParserAnnotatorUtils
Method Summary | |
---|---|
static void |
convertToCoreLabels(Tree tree)
Converts the tree labels to CoreLabels. |
static void |
fillInParseAnnotations(boolean verbose,
boolean buildGraphs,
GrammaticalStructureFactory gsf,
CoreMap sentence,
Tree tree)
Thread safety note: nothing special is done to ensure the thread safety of the GrammaticalStructureFactory. |
static void |
setMissingTags(CoreMap sentence,
Tree tree)
Set the tags of the original tokens and the leaves if they aren't already set |
static Tree |
xTree(java.util.List<? extends HasWord> words)
Construct a fall through tree in case we can't parse this sentence |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void fillInParseAnnotations(boolean verbose, boolean buildGraphs, GrammaticalStructureFactory gsf, CoreMap sentence, Tree tree)
public static void setMissingTags(CoreMap sentence, Tree tree)
public static void convertToCoreLabels(Tree tree)
tree
- public static Tree xTree(java.util.List<? extends HasWord> words)
words
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |