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(UimaContext context) |
void |
process(JCas jCas) |
protected abstract void |
setAttribute(Event event,
OUTCOME_TYPE value)
Set the attribute value on the Event annotation.
|
collectionProcessComplete, isTraininggetLoggergetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextbatchProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecificationprotected List<CleartkExtractor<Event,Token>> contextExtractors
initialize(org.apache.uima.UimaContext) to fill this list.protected List<FeatureExtractor1<Event>> eventFeatureExtractors
initialize(org.apache.uima.UimaContext) to fill this list.public EventAttributeAnnotator()
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 OUTCOME_TYPE getDefaultValue()
public void initialize(UimaContext context) throws ResourceInitializationException
initialize in interface AnalysisComponentinitialize in interface org.apache.uima.fit.factory.initializable.Initializableinitialize in class CleartkAnnotator<OUTCOME_TYPE>ResourceInitializationExceptionpublic void process(JCas jCas) throws AnalysisEngineProcessException
process in class JCasAnnotator_ImplBaseAnalysisEngineProcessExceptionprotected 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.Copyright © 2014. All rights reserved.