@PipeBitInfo(name="Time Annotator", description="...", dependencies={SECTION,SENTENCE,BASE_TOKEN}, products=TIMEX) public class TimeAnnotator extends TemporalEntityAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
protected List<org.cleartk.ml.feature.extractor.CleartkExtractor> |
contextFeatureExtractors |
protected Float |
featureSelectionThreshold |
protected URI |
featureSelectionURI |
static String |
PARAM_FEATURE_SELECTION_THRESHOLD |
static String |
PARAM_FEATURE_SELECTION_URI |
static String |
PARAM_SMOTE_NUM_NEIGHBORS |
static String |
PARAM_TIMEX_VIEW |
protected ParseSpanFeatureExtractor |
parseExtractor |
protected Float |
smoteNumOfNeighbors |
protected String |
timexView |
protected List<org.cleartk.ml.feature.extractor.FeatureExtractor1> |
tokenFeatureExtractors |
Constructor and Description |
---|
TimeAnnotator() |
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<?> dataWriterClass,
File outputDirectory,
float featureSelect,
float smoteNeighborNumber) |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEnsembleDescription(File modelDirectory,
String mappedView) |
static FeatureSelection<String> |
createFeatureSelection(double threshold) |
static URI |
createFeatureSelectionURI(File outputDirectoryName) |
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_FEATURE_SELECTION_THRESHOLD
protected Float featureSelectionThreshold
public static final String PARAM_FEATURE_SELECTION_URI
protected URI featureSelectionURI
public static final String PARAM_SMOTE_NUM_NEIGHBORS
protected Float smoteNumOfNeighbors
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<?> dataWriterClass, File outputDirectory, float featureSelect, float smoteNeighborNumber) 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 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 mappedView) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static FeatureSelection<String> createFeatureSelection(double threshold)
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.