public abstract class EventAttributeAnnotator<OUTCOME_TYPE> extends CleartkAnnotator<OUTCOME_TYPE>
| Modifier and Type | Field and Description |
|---|---|
protected List<CleartkExtractor<Event,Token>> |
contextExtractors
The list of feature extractors that will be applied to the Event annotation, with a Sentence
window.
|
protected List<FeatureExtractor1<Event>> |
eventFeatureExtractors
The list of feature extractors that will be applied directly to the Event annotation.
|
classifier, dataWriter, PARAM_CLASSIFIER_FACTORY_CLASS_NAME, PARAM_DATA_WRITER_FACTORY_CLASS_NAME, PARAM_IS_TRAINING| Constructor and Description |
|---|
EventAttributeAnnotator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract OUTCOME_TYPE |
getAttribute(Event event)
Get the attribute value from the Event annotation.
|
protected abstract OUTCOME_TYPE |
getDefaultValue()
The attribute value that should be considered as a default, e.g.
|
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas jCas) |
protected abstract void |
setAttribute(Event event,
OUTCOME_TYPE value)
Set the attribute value on the Event annotation.
|
collectionProcessComplete, isTraininggetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextprotected List<FeatureExtractor1<Event>> eventFeatureExtractors
initialize(org.apache.uima.UimaContext) to fill this list.protected List<CleartkExtractor<Event,Token>> contextExtractors
initialize(org.apache.uima.UimaContext) to fill this list.protected abstract OUTCOME_TYPE getDefaultValue()
protected abstract OUTCOME_TYPE getAttribute(Event event)
Event.getTense().
If this method returns null, getDefaultValue() will be called to produce an
appropriate attribute value.event - The Event annotation whose attribute is to be retrieved.protected abstract void setAttribute(Event event, OUTCOME_TYPE value)
Event.setTense(String).
This method will not be called if the value is equal to getDefaultValue().event - The Event annotation whose attribute is to be set.value - The new attribute value.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 CleartkAnnotator<OUTCOME_TYPE>org.apache.uima.resource.ResourceInitializationExceptionpublic void process(org.apache.uima.jcas.JCas jCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionCopyright © 2023. All rights reserved.