public class HeidelTimeAnnotator extends java.lang.Object implements Annotator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HEIDELTIME_LANGUAGE_PROPERTY |
static java.lang.String |
HEIDELTIME_OUTPUT_RESULTS |
static java.lang.String |
HEIDELTIME_PATH_PROPERTY |
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 |
---|
HeidelTimeAnnotator() |
HeidelTimeAnnotator(java.io.File heideltimePath) |
HeidelTimeAnnotator(java.io.File heideltimePath,
java.lang.String language,
boolean outputResults) |
HeidelTimeAnnotator(java.lang.String name,
java.util.Properties props) |
Modifier and Type | Method and Description |
---|---|
void |
annotate(Annotation annotation)
Given an Annotation, perform a task on this Annotation.
|
void |
annotate(CoreMap document) |
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, wait
exactRequirements, unmount
public static final java.lang.String HEIDELTIME_PATH_PROPERTY
public static final java.lang.String HEIDELTIME_LANGUAGE_PROPERTY
public static final java.lang.String HEIDELTIME_OUTPUT_RESULTS
public HeidelTimeAnnotator()
public HeidelTimeAnnotator(java.io.File heideltimePath)
public HeidelTimeAnnotator(java.io.File heideltimePath, java.lang.String language, boolean outputResults)
public HeidelTimeAnnotator(java.lang.String name, java.util.Properties props)
public void annotate(Annotation annotation)
Annotator
public void annotate(CoreMap document) throws java.io.IOException
java.io.IOException
public java.util.Set<java.lang.Class<? extends CoreAnnotation>> requires()
Annotator
public java.util.Set<java.lang.Class<? extends CoreAnnotation>> requirementsSatisfied()
Annotator
requirementsSatisfied
in interface Annotator