public class SemanticFieldAnnotator
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_ANNOTATION_TYPE
Annotation types which should be annotated with semantic fields
|
static String |
PARAM_CONSTRAINT
A constraint on the annotations that should be considered in form of a JXPath statement.
|
static String |
PARAM_SEMANTIC_FIELD_RESOURCE |
Constructor and Description |
---|
SemanticFieldAnnotator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas aJCas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_SEMANTIC_FIELD_RESOURCE
public static final String PARAM_ANNOTATION_TYPE
public static final String PARAM_CONSTRAINT
PARAM_ANNOTATION_TYPE
to a NamedEntity
type and set the
PARAM_CONSTRAINT
to ".[value = 'LOCATION']"
to annotate only tokens with semantic fields that are
part of a location named entity.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 class org.apache.uima.fit.component.JCasAnnotator_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2011–2015. All rights reserved.