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