use of edu.stanford.nlp.trees.NPTmpRetainingTreeNormalizer in project CoreNLP by stanfordnlp.
the class UniversalDependenciesFeatureAnnotator method treebankIterator.
private static Iterator<Tree> treebankIterator(String path) {
/* Remove empty nodes and strip indices from internal nodes but keep
functional tags. */
Treebank tb = new MemoryTreebank(new NPTmpRetainingTreeNormalizer(0, false, 1, false));
tb.loadPath(path);
return tb.iterator();
}
Aggregations