public class ParserUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.List<Tree> |
flattenTallTrees(int maxHeight,
java.util.List<Tree> trees)
Turn any trees which are taller than maxHeight into x trees
|
static void |
printOutOfMemory(java.io.PrintWriter pw) |
static Tree |
xTree(java.util.List<? extends HasWord> words)
Construct a fall through tree in case we can't parse this sentence.
|
public static Tree xTree(java.util.List<? extends HasWord> words)
words
- Words of the sentence that didn't parsepublic static java.util.List<Tree> flattenTallTrees(int maxHeight, java.util.List<Tree> trees)
public static void printOutOfMemory(java.io.PrintWriter pw)