public class EventModalityAnnotator extends EventAttributeAnnotator<String>
| Modifier and Type | Field and Description |
|---|---|
static CleartkInternalModelFactory |
FACTORY |
contextExtractors, eventFeatureExtractorsclassifier, dataWriter, PARAM_CLASSIFIER_FACTORY_CLASS_NAME, PARAM_DATA_WRITER_FACTORY_CLASS_NAME, PARAM_IS_TRAINING| Constructor and Description |
|---|
EventModalityAnnotator() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAttribute(Event event)
Get the attribute value from the Event annotation.
|
protected String |
getDefaultValue()
The attribute value that should be considered as a default, e.g.
|
void |
initialize(UimaContext context) |
protected void |
setAttribute(Event event,
String value)
Set the attribute value on the Event annotation.
|
processcollectionProcessComplete, isTraininggetLoggergetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextbatchProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecificationpublic static final CleartkInternalModelFactory FACTORY
public EventModalityAnnotator()
protected String getAttribute(Event event)
EventAttributeAnnotatorEvent.getTense().
If this method returns null, EventAttributeAnnotator.getDefaultValue() will be called to produce an
appropriate attribute value.getAttribute in class EventAttributeAnnotator<String>event - The Event annotation whose attribute is to be retrieved.protected String getDefaultValue()
EventAttributeAnnotatorgetDefaultValue in class EventAttributeAnnotator<String>public void initialize(UimaContext context) throws ResourceInitializationException
initialize in interface AnalysisComponentinitialize in interface org.apache.uima.fit.factory.initializable.Initializableinitialize in class EventAttributeAnnotator<String>ResourceInitializationExceptionprotected void setAttribute(Event event, String value)
EventAttributeAnnotatorEvent.setTense(String).
This method will not be called if the value is equal to EventAttributeAnnotator.getDefaultValue().setAttribute in class EventAttributeAnnotator<String>event - The Event annotation whose attribute is to be set.value - The new attribute value.Copyright © 2014. All rights reserved.