public class NaturalLogicAnnotator extends SentenceAnnotator
PATTERNS for the full list of patterns, otherwise
doOneSentence(Annotation, CoreMap) is the main interface for this class.
TODO(gabor) annotate generics as "most"SentenceAnnotator.AnnotatorProcessorAnnotator.Requirement| Modifier and Type | Field and Description |
|---|---|
boolean |
doPolarity
If false, don't annotate tokens for polarity but only find the operators and their scopes.
|
BINARIZED_TREES_REQUIREMENT, CLEAN_XML_REQUIREMENT, COLUMN_DATA_CLASSIFIER, DETERMINISTIC_COREF_REQUIREMENT, GENDER_REQUIREMENT, GUTIME_REQUIREMENT, HEIDELTIME_REQUIREMENT, LEMMA_REQUIREMENT, NATLOG_REQUIREMENT, NER_REQUIREMENT, NUMBER_REQUIREMENT, PARSE_AND_TAG, PARSE_REQUIREMENT, PARSE_TAG_BINARIZED_TREES, POS_REQUIREMENT, QUANTIFIABLE_ENTITY_NORMALIZATION_REQUIREMENT, QUOTE_REQUIREMENT, RELATION_EXTRACTOR_REQUIREMENT, SSPLIT_REQUIREMENT, STANFORD_CLEAN_XML, STANFORD_COLUMN_DATA_CLASSIFIER, STANFORD_DEPENDENCIES, STANFORD_DETERMINISTIC_COREF, STANFORD_ENTITY_MENTIONS, STANFORD_GENDER, STANFORD_LEMMA, STANFORD_NATLOG, STANFORD_NER, STANFORD_PARSE, STANFORD_POS, STANFORD_QUOTE, 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 |
|---|
NaturalLogicAnnotator()
The default constructor
|
NaturalLogicAnnotator(Properties props) |
NaturalLogicAnnotator(String annotatorName,
Properties props)
Create a new annotator.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doOneFailedSentence(Annotation annotation,
CoreMap sentence)
Fills in empty annotations for trees, tags, etc if the annotator
failed or timed out.
|
protected void |
doOneSentence(Annotation annotation,
CoreMap sentence)
annotation is included in case there is global information we care about
|
protected long |
maxTime() |
protected int |
nThreads() |
Set<Annotator.Requirement> |
requirementsSatisfied()
Returns a set of requirements for which tasks this annotator can
provide.
|
Set<Annotator.Requirement> |
requires()
Returns the set of tasks which this annotator requires in order
to perform.
|
annotatepublic final boolean doPolarity
public NaturalLogicAnnotator(String annotatorName, Properties props)
annotatorName - The prefix for the properties for this annotator.props - The properties to configure this annotator with.public NaturalLogicAnnotator(Properties props)
public NaturalLogicAnnotator()
protected void doOneSentence(Annotation annotation, CoreMap sentence)
doOneSentence in class SentenceAnnotatorprotected int nThreads()
nThreads in class SentenceAnnotatorprotected long maxTime()
maxTime in class SentenceAnnotatorprotected void doOneFailedSentence(Annotation annotation, CoreMap sentence)
doOneFailedSentence in class SentenceAnnotatorpublic Set<Annotator.Requirement> requirementsSatisfied()
public Set<Annotator.Requirement> requires()