@PipeBitInfo(name="Timex Annotator", description="Annotates absolute time / date Temporal expressions into a View.", role=SPECIAL, dependencies={SECTION,SENTENCE,BASE_TOKEN}, products=TIMEX) public class CRFTimeAnnotator extends TemporalSequenceAnnotator_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 |
---|
CRFTimeAnnotator() |
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 |
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
classify, collectionProcessComplete, isTraining
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 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.CleartkSequenceAnnotator<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 TemporalSequenceAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.