public abstract class SentenceAnnotator extends Object implements Annotator
Modifier and Type | Class and Description |
---|---|
protected class |
SentenceAnnotator.AnnotatorProcessor |
Annotator.Requirement
BINARIZED_TREES_REQUIREMENT, CLEAN_XML_REQUIREMENT, COLUMN_DATA_CLASSIFIER, DETERMINISTIC_COREF_REQUIREMENT, GENDER_REQUIREMENT, GUTIME_REQUIREMENT, HEIDELTIME_REQUIREMENT, LEMMA_REQUIREMENT, NER_REQUIREMENT, NUMBER_REQUIREMENT, PARSE_AND_TAG, PARSE_REQUIREMENT, PARSE_TAG_BINARIZED_TREES, POS_REQUIREMENT, QUANTIFIABLE_ENTITY_NORMALIZATION_REQUIREMENT, RELATION_EXTRACTOR_REQUIREMENT, SSPLIT_REQUIREMENT, STANFORD_CLEAN_XML, STANFORD_COLUMN_DATA_CLASSIFIER, STANFORD_DEPENDENCIES, STANFORD_DETERMINISTIC_COREF, STANFORD_GENDER, STANFORD_LEMMA, STANFORD_NER, STANFORD_PARSE, STANFORD_POS, STANFORD_REGEXNER, STANFORD_RELATION, STANFORD_SENTIMENT, STANFORD_SSPLIT, STANFORD_TOKENIZE, STANFORD_TRUECASE, STEM_REQUIREMENT, SUTIME_REQUIREMENT, TIME_WORDS_REQUIREMENT, TOKENIZE_AND_SSPLIT, TOKENIZE_REQUIREMENT, TOKENIZE_SSPLIT_NER, TOKENIZE_SSPLIT_PARSE, TOKENIZE_SSPLIT_PARSE_NER, TOKENIZE_SSPLIT_POS, TOKENIZE_SSPLIT_POS_LEMMA, TRUECASE_REQUIREMENT
Constructor and Description |
---|
SentenceAnnotator() |
Modifier and Type | Method and Description |
---|---|
void |
annotate(Annotation annotation)
Given an Annotation, perform a task on this Annotation.
|
protected abstract void |
doOneFailedSentence(Annotation annotation,
CoreMap sentence)
Fills in empty annotations for trees, tags, etc if the annotator
failed or timed out.
|
protected abstract void |
doOneSentence(Annotation annotation,
CoreMap sentence)
annotation is included in case there is global information we care about
|
protected abstract long |
maxTime() |
protected abstract int |
nThreads() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requirementsSatisfied, requires
public void annotate(Annotation annotation)
Annotator
protected abstract int nThreads()
protected abstract long maxTime()
protected abstract void doOneSentence(Annotation annotation, CoreMap sentence)
protected abstract void doOneFailedSentence(Annotation annotation, CoreMap sentence)