edu.stanford.nlp.parser.lexparser
Class TreebankAnnotator
java.lang.Object
edu.stanford.nlp.parser.lexparser.TreebankAnnotator
public class TreebankAnnotator
- extends Object
Class for getting an annotated treebank.
- Author:
- Dan Klein
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreebankAnnotator
public TreebankAnnotator(Options op,
String treebankRoot)
annotateTrees
public List annotateTrees(List trees)
deannotateTrees
public List deannotateTrees(List trees)
extractGrammars
public static Pair extractGrammars(List trees)
extractLexicon
public static Lexicon extractLexicon(List trees,
Options op)
getTrees
public static List getTrees(String path,
int low,
int high,
int minLength,
int maxLength)
removeDependencyRoots
public static List removeDependencyRoots(List trees)
collinize
public Tree collinize(Tree tree)
main
public static void main(String[] args)
Stanford NLP Group