public class StanfordDepHandler extends Annotator
config, isInitialized, requiredViews, viewName| Constructor and Description |
|---|
StanfordDepHandler(edu.stanford.nlp.pipeline.POSTaggerAnnotator posAnnotator,
edu.stanford.nlp.pipeline.ParserAnnotator parseAnnotator) |
StanfordDepHandler(edu.stanford.nlp.pipeline.POSTaggerAnnotator posAnnotator,
edu.stanford.nlp.pipeline.ParserAnnotator parseAnnotator,
int maxSentenceLength,
boolean throwExceptionOnSentenceLengthCheck)
params for instantiation.
|
| 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, isSentenceLevelpublic StanfordDepHandler(edu.stanford.nlp.pipeline.POSTaggerAnnotator posAnnotator,
edu.stanford.nlp.pipeline.ParserAnnotator parseAnnotator)
public StanfordDepHandler(edu.stanford.nlp.pipeline.POSTaggerAnnotator posAnnotator,
edu.stanford.nlp.pipeline.ParserAnnotator parseAnnotator,
int maxSentenceLength,
boolean throwExceptionOnSentenceLengthCheck)
posAnnotator - Stanford pos annotatorparseAnnotator - Stanford parse annotatormaxSentenceLength - limit length of sentences that parser will attempt to process to
control time takenthrowExceptionOnSentenceLengthCheck - if 'true', gives up on an entire input text if any
sentence is too longpublic void initialize(ResourceManager resourceManager)
initialize in class AnnotatorresourceManager - configuration parameterspublic void addView(TextAnnotation textAnnotation) throws AnnotatorException
AnnotatoraddView in class AnnotatortextAnnotation - the TextAnnotation to modify.AnnotatorExceptionCopyright © 2017. All rights reserved.