public class EventClassAnnotator 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 |
|---|
EventClassAnnotator() |
| 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(org.apache.uima.UimaContext context) |
protected void |
setAttribute(Event event,
String value)
Set the attribute value on the Event annotation.
|
processcollectionProcessComplete, isTraininggetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic static final CleartkInternalModelFactory FACTORY
public void initialize(org.apache.uima.UimaContext context)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.analysis_component.AnalysisComponentinitialize in interface org.apache.uima.fit.factory.initializable.Initializableinitialize in class EventAttributeAnnotator<String>org.apache.uima.resource.ResourceInitializationExceptionprotected String getDefaultValue()
EventAttributeAnnotatorgetDefaultValue in class EventAttributeAnnotator<String>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 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 © 2023. All rights reserved.