public class ParserAnnotatorUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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
|
public static void fillInParseAnnotations(boolean verbose,
boolean buildGraphs,
GrammaticalStructureFactory gsf,
CoreMap sentence,
Tree tree)
public static void setMissingTags(CoreMap sentence, Tree tree)