@PipeBitInfo(name="Backward Timex Annotator", description="Annotates absolute time / date Temporal expressions.", role=ANNOTATOR, dependencies={SECTION,SENTENCE,BASE_TOKEN}, products=TIMEX) public class BackwardsTimeAnnotator extends TemporalEntityAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
protected List<org.cleartk.ml.feature.extractor.CleartkExtractor> |
contextFeatureExtractors |
static String |
PARAM_TIMEX_VIEW |
protected ParseSpanFeatureExtractor |
parseExtractor |
protected String |
timexView |
protected List<org.cleartk.ml.feature.extractor.FeatureExtractor1> |
tokenFeatureExtractors |
Constructor and Description |
---|
BackwardsTimeAnnotator() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription(File modelDirectory)
Deprecated.
use String path instead of File.
ClearTK will automatically Resolve the String to an InputStream.
This will allow resources to be read within from a jar as well as File.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription(String modelPath) |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createDataWriterDescription(Class<? extends org.cleartk.ml.DataWriter<String>> dataWriterClass,
File outputDirectory) |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEnsembleDescription(File modelDirectory,
String viewName)
Deprecated.
use String path instead of File.
ClearTK will automatically Resolve the String to an InputStream.
This will allow resources to be read within from a jar as well as File.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEnsembleDescription(String modelPath,
String viewName) |
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas jCas,
Segment segment) |
process
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_TIMEX_VIEW
protected String timexView
protected List<org.cleartk.ml.feature.extractor.FeatureExtractor1> tokenFeatureExtractors
protected List<org.cleartk.ml.feature.extractor.CleartkExtractor> contextFeatureExtractors
protected ParseSpanFeatureExtractor parseExtractor
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createDataWriterDescription(Class<? extends org.cleartk.ml.DataWriter<String>> dataWriterClass, File outputDirectory) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(String modelPath) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEnsembleDescription(String modelPath, String viewName) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(File modelDirectory) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEnsembleDescription(File modelDirectory, String viewName) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in interface org.apache.uima.fit.factory.initializable.Initializable
initialize
in class org.cleartk.ml.CleartkAnnotator<String>
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas jCas, Segment segment) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class TemporalEntityAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.