edu.stanford.nlp.parser.lexparser
Class TreebankAnnotator

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.TreebankAnnotator

public class TreebankAnnotator
extends java.lang.Object

Class for getting an annotated treebank.

Author:
Dan Klein

Constructor Summary
TreebankAnnotator(Options op, java.lang.String treebankRoot)
           
 
Method Summary
 java.util.List<Tree> annotateTrees(java.util.List<Tree> trees)
           
 Tree collinize(Tree tree)
           
 java.util.List<Tree> deannotateTrees(java.util.List<Tree> trees)
           
static Pair<UnaryGrammar,BinaryGrammar> extractGrammars(java.util.List<Tree> trees)
           
static Lexicon extractLexicon(java.util.List<Tree> trees, Options op)
           
static java.util.List<Tree> getTrees(java.lang.String path, int low, int high, int minLength, int maxLength)
           
static void main(java.lang.String[] args)
           
static java.util.List<Tree> removeDependencyRoots(java.util.List<Tree> trees)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreebankAnnotator

public TreebankAnnotator(Options op,
                         java.lang.String treebankRoot)
Method Detail

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