org.apache.ctakes.temporal.ae
Class TimeAnnotator

java.lang.Object
  extended by org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      extended by org.apache.uima.analysis_component.Annotator_ImplBase
          extended by org.apache.uima.analysis_component.JCasAnnotator_ImplBase
              extended by org.uimafit.component.JCasAnnotator_ImplBase
                  extended by org.cleartk.classifier.CleartkAnnotator<java.lang.String>
                      extended by org.apache.ctakes.temporal.ae.TemporalEntityAnnotator_ImplBase
                          extended by org.apache.ctakes.temporal.ae.TimeAnnotator
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent, org.uimafit.factory.initializable.Initializable

public class TimeAnnotator
extends TemporalEntityAnnotator_ImplBase


Field Summary
protected  java.util.List<org.cleartk.classifier.feature.extractor.CleartkExtractor> contextFeatureExtractors
           
protected  java.util.List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> tokenFeatureExtractors
           
 
Fields inherited from class org.cleartk.classifier.CleartkAnnotator
classifier, dataWriter, PARAM_CLASSIFIER_FACTORY_CLASS_NAME, PARAM_DATA_WRITER_FACTORY_CLASS_NAME, PARAM_IS_TRAINING
 
Constructor Summary
TimeAnnotator()
           
 
Method Summary
static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(java.io.File modelDirectory)
           
static org.apache.uima.analysis_engine.AnalysisEngineDescription createDataWriterDescription(java.lang.Class<? extends org.cleartk.classifier.DataWriter<java.lang.String>> dataWriterClass, java.io.File outputDirectory)
           
 void initialize(org.apache.uima.UimaContext context)
           
 void process(org.apache.uima.jcas.JCas jCas, Segment segment)
           
 
Methods inherited from class org.apache.ctakes.temporal.ae.TemporalEntityAnnotator_ImplBase
process
 
Methods inherited from class org.cleartk.classifier.CleartkAnnotator
collectionProcessComplete, isTraining
 
Methods inherited from class org.uimafit.component.JCasAnnotator_ImplBase
getLogger
 
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
getRequiredCasInterface, process
 
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase
getCasInstancesRequired, hasNext, next
 
Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
batchProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tokenFeatureExtractors

protected java.util.List<org.cleartk.classifier.feature.extractor.simple.SimpleFeatureExtractor> tokenFeatureExtractors

contextFeatureExtractors

protected java.util.List<org.cleartk.classifier.feature.extractor.CleartkExtractor> contextFeatureExtractors
Constructor Detail

TimeAnnotator

public TimeAnnotator()
Method Detail

createDataWriterDescription

public static org.apache.uima.analysis_engine.AnalysisEngineDescription createDataWriterDescription(java.lang.Class<? extends org.cleartk.classifier.DataWriter<java.lang.String>> dataWriterClass,
                                                                                                    java.io.File outputDirectory)
                                                                                             throws org.apache.uima.resource.ResourceInitializationException
Throws:
org.apache.uima.resource.ResourceInitializationException

createAnnotatorDescription

public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(java.io.File modelDirectory)
                                                                                            throws org.apache.uima.resource.ResourceInitializationException
Throws:
org.apache.uima.resource.ResourceInitializationException

initialize

public void initialize(org.apache.uima.UimaContext context)
                throws org.apache.uima.resource.ResourceInitializationException
Specified by:
initialize in interface org.apache.uima.analysis_component.AnalysisComponent
Specified by:
initialize in interface org.uimafit.factory.initializable.Initializable
Overrides:
initialize in class org.cleartk.classifier.CleartkAnnotator<java.lang.String>
Throws:
org.apache.uima.resource.ResourceInitializationException

process

public void process(org.apache.uima.jcas.JCas jCas,
                    Segment segment)
             throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Specified by:
process in class TemporalEntityAnnotator_ImplBase
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException