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<Tree> annotateTrees(List<Tree> trees)
deannotateTrees
public List<Tree> deannotateTrees(List<Tree> trees)
extractGrammars
public static Pair<UnaryGrammar,BinaryGrammar> extractGrammars(List<Tree> trees)
extractLexicon
public static Lexicon extractLexicon(List<Tree> trees,
Options op)
getTrees
public static List<Tree> getTrees(String path,
int low,
int high,
int minLength,
int maxLength)
removeDependencyRoots
public static List<Tree> removeDependencyRoots(List<Tree> trees)
collinize
public Tree collinize(Tree tree)
main
public static void main(String[] args)
Stanford NLP Group