public class EventAspectAnnotator extends EventAttributeAnnotator<String>
| Modifier and Type | Field and Description |
|---|---|
static CleartkInternalModelFactory |
FACTORY |
contextExtractors, eventFeatureExtractors| Constructor and Description |
|---|
EventAspectAnnotator() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAttribute(org.cleartk.timeml.type.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(org.cleartk.timeml.type.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.uimafit.factory.initializable.Initializableinitialize in class EventAttributeAnnotator<String>org.apache.uima.resource.ResourceInitializationExceptionprotected String getDefaultValue()
EventAttributeAnnotatorgetDefaultValue in class EventAttributeAnnotator<String>protected String getAttribute(org.cleartk.timeml.type.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(org.cleartk.timeml.type.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 © 2013. All Rights Reserved.