DEFAULT_REQUIREMENTS, STANFORD_CDC_TOKENIZE, STANFORD_CLEAN_XML, STANFORD_COLUMN_DATA_CLASSIFIER, STANFORD_COREF, STANFORD_COREF_MENTION, STANFORD_DEPENDENCIES, STANFORD_DETERMINISTIC_COREF, STANFORD_DOCDATE, STANFORD_ENTITY_MENTIONS, STANFORD_GENDER, STANFORD_KBP, STANFORD_LEMMA, STANFORD_LINK, STANFORD_MWT, STANFORD_NATLOG, STANFORD_NER, STANFORD_OPENIE, STANFORD_PARSE, STANFORD_POS, STANFORD_QUOTE, STANFORD_QUOTE_ATTRIBUTION, STANFORD_REGEXNER, STANFORD_RELATION, STANFORD_SENTIMENT, STANFORD_SSPLIT, STANFORD_TOKENIZE, STANFORD_TOKENSREGEX, STANFORD_TRUECASE, STANFORD_UD_FEATURES| Constructor and Description |
|---|
POSTaggerAnnotator()
Create a tagger annotator using the default English tagger from the models jar
(and non-verbose initialization).
|
POSTaggerAnnotator(boolean verbose) |
POSTaggerAnnotator(MaxentTagger model) |
POSTaggerAnnotator(MaxentTagger model,
int maxSentenceLength,
int numThreads) |
POSTaggerAnnotator(java.lang.String posLoc,
boolean verbose) |
POSTaggerAnnotator(java.lang.String posLoc,
boolean verbose,
int maxSentenceLength,
int numThreads)
Create a POS tagger annotator.
|
POSTaggerAnnotator(java.lang.String annotatorName,
java.util.Properties props) |
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(Annotation annotation)
Given an Annotation, perform a task on this Annotation.
|
java.util.Set<java.lang.Class<? extends CoreAnnotation>> |
requirementsSatisfied()
Returns a set of requirements for which tasks this annotator can
provide.
|
java.util.Set<java.lang.Class<? extends CoreAnnotation>> |
requires()
Returns the set of tasks which this annotator requires in order
to perform.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexactRequirements, unmountpublic POSTaggerAnnotator()
public POSTaggerAnnotator(boolean verbose)
public POSTaggerAnnotator(java.lang.String posLoc,
boolean verbose)
public POSTaggerAnnotator(java.lang.String posLoc,
boolean verbose,
int maxSentenceLength,
int numThreads)
posLoc - Location of POS tagger model (may be file path, classpath resource, or URLverbose - Whether to show verbose information on model loadingmaxSentenceLength - Sentences longer than this length will be skipped in processingnumThreads - The number of threads for the POS tagger annotator to usepublic POSTaggerAnnotator(MaxentTagger model)
public POSTaggerAnnotator(MaxentTagger model, int maxSentenceLength, int numThreads)
public POSTaggerAnnotator(java.lang.String annotatorName,
java.util.Properties props)
public void annotate(Annotation annotation)
Annotatorpublic java.util.Set<java.lang.Class<? extends CoreAnnotation>> requires()
Annotatorpublic java.util.Set<java.lang.Class<? extends CoreAnnotation>> requirementsSatisfied()
AnnotatorrequirementsSatisfied in interface Annotator