public abstract class FeaturePathAnnotatorBase
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
protected Condition |
filterCondition |
protected String |
filterConditionOperator |
protected String |
filterConditionValue |
protected String |
filterFeaturePath |
protected FeaturePathInfo |
filterFeaturePathInfo |
protected FeaturePathInfo |
fp |
static String |
PARAM_FILTER_CONDITION_OPERATOR
Specifies the operator for a filtering condition.
|
static String |
PARAM_FILTER_CONDITION_VALUE
Specifies the value for a filtering condition.
|
static String |
PARAM_FILTER_FEATUREPATH
Specifies a feature path that is used in the filter.
|
static String |
PARAM_PATHS
Specify a path that is used for annotation.
|
protected Set<String> |
paths |
Constructor and Description |
---|
FeaturePathAnnotatorBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
generateAnnotations(org.apache.uima.jcas.JCas jcas)
Method to create annotations.
|
protected Set<String> |
getDefaultPaths() |
void |
initialize(org.apache.uima.UimaContext aContext) |
void |
initializeFeaturePathInfoFrom(FeaturePathInfo aFp,
String[] featurePathString)
Checks for empty feature path and initializes the feature path object.
|
void |
process(org.apache.uima.jcas.JCas jcas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_PATHS
public static final String PARAM_FILTER_FEATUREPATH
PARAM_FILTER_CONDITION_OPERATOR
and PARAM_FILTER_CONDITION_VALUE
.protected String filterFeaturePath
public static final String PARAM_FILTER_CONDITION_OPERATOR
It is only used if PARAM_FILTER_FEATUREPATH
is set.
FilterOp
,
Constant Field Valuesprotected String filterConditionOperator
public static final String PARAM_FILTER_CONDITION_VALUE
It is only used if PARAM_FILTER_FEATUREPATH
is set.
Condition
,
Constant Field Valuesprotected String filterConditionValue
protected Condition filterCondition
protected FeaturePathInfo filterFeaturePathInfo
protected FeaturePathInfo fp
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.fit.component.JCasAnnotator_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas jcas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public void initializeFeaturePathInfoFrom(FeaturePathInfo aFp, String[] featurePathString) throws FeaturePathException
aFp
- the feature path that is to be initialized with the featurePathStringfeaturePathString
- the string that is used to initialize feature pathFeaturePathException
- if an error occurs during initialization of the FeaturePathInfo
objectprotected abstract void generateAnnotations(org.apache.uima.jcas.JCas jcas) throws FeaturePathException, org.apache.uima.analysis_engine.AnalysisEngineProcessException
jcas
- the JCas.FeaturePathException
- if an error occurs during initialization of the FeaturePathInfo
objectorg.apache.uima.analysis_engine.AnalysisEngineProcessException
- if another error occurs.Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.