public class StanfordParseHandler extends Annotator
config, isInitialized, requiredViews, viewName
Constructor and Description |
---|
StanfordParseHandler(edu.stanford.nlp.pipeline.POSTaggerAnnotator posAnnotator,
edu.stanford.nlp.pipeline.ParserAnnotator parseAnnotator) |
StanfordParseHandler(edu.stanford.nlp.pipeline.POSTaggerAnnotator posAnnotator,
edu.stanford.nlp.pipeline.ParserAnnotator parseAnnotator,
int maxSentenceLength,
boolean throwExceptionOnSentenceLengthCheck) |
Modifier and Type | Method and Description |
---|---|
void |
addView(TextAnnotation textAnnotation)
create and add the view named by getViewName() to the TextAnnotation argument.
|
void |
initialize(ResourceManager resourceManager)
noop
|
doInitialize, getRequiredViews, getTagValues, getView, getViewName, isInitialized, isSentenceLevel
public StanfordParseHandler(edu.stanford.nlp.pipeline.POSTaggerAnnotator posAnnotator, edu.stanford.nlp.pipeline.ParserAnnotator parseAnnotator)
public StanfordParseHandler(edu.stanford.nlp.pipeline.POSTaggerAnnotator posAnnotator, edu.stanford.nlp.pipeline.ParserAnnotator parseAnnotator, int maxSentenceLength, boolean throwExceptionOnSentenceLengthCheck)
public void initialize(ResourceManager resourceManager)
initialize
in class Annotator
resourceManager
- public void addView(TextAnnotation textAnnotation) throws AnnotatorException
Annotator
addView
in class Annotator
textAnnotation
- the TextAnnotation to modify.AnnotatorException
Copyright © 2017. All rights reserved.