edu.stanford.nlp.parser.lexparser
Class TreebankAnnotator
java.lang.Object
edu.stanford.nlp.parser.lexparser.TreebankAnnotator
public class TreebankAnnotator
- extends java.lang.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,
java.lang.String treebankRoot)
annotateTrees
public java.util.List<Tree> annotateTrees(java.util.List<Tree> trees)
deannotateTrees
public java.util.List<Tree> deannotateTrees(java.util.List<Tree> trees)
extractGrammars
public static Pair<UnaryGrammar,BinaryGrammar> extractGrammars(java.util.List<Tree> trees)
extractLexicon
public static Lexicon extractLexicon(java.util.List<Tree> trees,
Options op)
getTrees
public static java.util.List<Tree> getTrees(java.lang.String path,
int low,
int high,
int minLength,
int maxLength)
removeDependencyRoots
public static java.util.List<Tree> removeDependencyRoots(java.util.List<Tree> trees)
collinize
public Tree collinize(Tree tree)
main
public static void main(java.lang.String[] args)
Stanford NLP Group