edu.stanford.nlp.parser.lexparser
Class TreebankAnnotator

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

public class TreebankAnnotator
extends Object

Class for getting an annotated treebank.

Author:
Dan Klein

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

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