public abstract class EventAttributeAnnotator<OUTCOME_TYPE>
extends org.cleartk.classifier.CleartkAnnotator<OUTCOME_TYPE>
| Modifier and Type | Field and Description |
|---|---|
protected List<org.cleartk.classifier.feature.extractor.CleartkExtractor> |
contextExtractors
The list of feature extractors that will be applied to the Event annotation, with a Sentence
window.
|
protected List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> |
eventFeatureExtractors
The list of feature extractors that will be applied directly to the Event annotation.
|
| Constructor and Description |
|---|
EventAttributeAnnotator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract OUTCOME_TYPE |
getAttribute(org.cleartk.timeml.type.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(org.cleartk.timeml.type.Event event,
OUTCOME_TYPE value)
Set the attribute value on the Event annotation.
|
collectionProcessComplete, isTraininggetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextprotected List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> eventFeatureExtractors
initialize(org.apache.uima.UimaContext) to fill this list.protected List<org.cleartk.classifier.feature.extractor.CleartkExtractor> contextExtractors
initialize(org.apache.uima.UimaContext) to fill this list.protected abstract OUTCOME_TYPE getDefaultValue()
protected abstract OUTCOME_TYPE getAttribute(org.cleartk.timeml.type.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(org.cleartk.timeml.type.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.uimafit.factory.initializable.Initializableinitialize in class org.cleartk.classifier.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 © 2013. All Rights Reserved.