public interface Annotator
Modifier and Type | Method and Description |
---|---|
void |
annotate(Annotation annotation)
Given an Annotation, perform a task on this Annotation.
|
Set<Class<? extends CoreAnnotation>> |
requirementsSatisfied()
Returns a set of requirements for which tasks this annotator can
provide.
|
Set<Class<? extends CoreAnnotation>> |
requires()
Returns the set of tasks which this annotator requires in order
to perform.
|
default void |
unmount()
A block of code called when this annotator unmounts from the
AnnotatorPool . |
static final String STANFORD_TOKENIZE
static final String STANFORD_CLEAN_XML
static final String STANFORD_SSPLIT
static final String STANFORD_MWT
static final String STANFORD_DOCDATE
static final String STANFORD_POS
static final String STANFORD_LEMMA
static final String STANFORD_NER
static final String STANFORD_REGEXNER
static final String STANFORD_TOKENSREGEX
static final String STANFORD_ENTITY_MENTIONS
static final String STANFORD_GENDER
static final String STANFORD_TRUECASE
static final String STANFORD_PARSE
static final String STANFORD_DETERMINISTIC_COREF
static final String STANFORD_COREF
static final String STANFORD_COREF_MENTION
static final String STANFORD_RELATION
static final String STANFORD_SENTIMENT
static final String STANFORD_COLUMN_DATA_CLASSIFIER
static final String STANFORD_DEPENDENCIES
static final String STANFORD_NATLOG
static final String STANFORD_OPENIE
static final String STANFORD_QUOTE
static final String STANFORD_QUOTE_ATTRIBUTION
static final String STANFORD_UD_FEATURES
static final String STANFORD_LINK
static final String STANFORD_KBP
static final Map<String,Set<String>> DEFAULT_REQUIREMENTS
void annotate(Annotation annotation)
default void unmount()
AnnotatorPool
.
By default, nothing is done.Set<Class<? extends CoreAnnotation>> requirementsSatisfied()
Set<Class<? extends CoreAnnotation>> requires()