@PipeBitInfo(name="Chunk Adjuster", description="Annotator that uses a pattern and a rule about that pattern to adjust certain annotations.", role=SPECIAL, dependencies={SENTENCE,CHUNK}) public class ChunkAdjuster extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_CHUNK_PATTERN
The pattern of chunks that trigger an adjustment.
|
static String |
PARAM_EXTEND_TO_INCLUDE_TOKEN
The index of the token (within the pattern) to extend the end offset to
include.
|
Constructor and Description |
---|
ChunkAdjuster() |
Modifier and Type | Method and Description |
---|---|
protected void |
annotateRange(org.apache.uima.jcas.JCas jcas,
int rangeBegin,
int rangeEnd)
A utility method that annotates a given range.
|
protected void |
annotateSentence(org.apache.uima.jcas.JCas jcas,
Sentence sent) |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription(String[] chunkPattern,
int patternIndex) |
void |
initialize(org.apache.uima.UimaContext aContext)
Performs initialization logic.
|
void |
process(org.apache.uima.jcas.JCas jcas)
Invokes this annotator's analysis logic.
|
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_CHUNK_PATTERN
public static final String PARAM_EXTEND_TO_INCLUDE_TOKEN
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
protected void annotateSentence(org.apache.uima.jcas.JCas jcas, Sentence sent) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
protected void annotateRange(org.apache.uima.jcas.JCas jcas, int rangeBegin, int rangeEnd) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(String[] chunkPattern, int patternIndex) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.