edu.stanford.nlp.pipeline
Class CharniakParserAnnotator

java.lang.Object
  extended by edu.stanford.nlp.pipeline.CharniakParserAnnotator
All Implemented Interfaces:
Annotator

public class CharniakParserAnnotator
extends java.lang.Object
implements Annotator

This class will add parse information to an Annotation from the BLLIP parser. It allows you to use the Charniak parser or Charniak and Johnson reranking parser along with any existing parser and reranking model. It assumes that the Annotation already contains the tokenized words as a List<List<CoreLabel>> under CoreAnnotations.SentencesAnnotation.class. If the words have POS tags, they will not be used.


Constructor Summary
CharniakParserAnnotator()
           
CharniakParserAnnotator(java.lang.String parserModel, java.lang.String parserExecutable, boolean verbose, int maxSentenceLength)
           
 
Method Summary
 void annotate(Annotation annotation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharniakParserAnnotator

public CharniakParserAnnotator(java.lang.String parserModel,
                               java.lang.String parserExecutable,
                               boolean verbose,
                               int maxSentenceLength)

CharniakParserAnnotator

public CharniakParserAnnotator()
Method Detail

annotate

public void annotate(Annotation annotation)
Specified by:
annotate in interface Annotator


Stanford NLP Group