edu.stanford.nlp.pipeline
Class CharniakParserAnnotator
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CharniakParserAnnotator
public CharniakParserAnnotator(java.lang.String parserModel,
java.lang.String parserExecutable,
boolean verbose,
int maxSentenceLength)
CharniakParserAnnotator
public CharniakParserAnnotator()
annotate
public void annotate(Annotation annotation)
- Specified by:
annotate in interface Annotator
Stanford NLP Group