public class SegmentRegexAnnotator
extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Constructor and Description |
---|
SegmentRegexAnnotator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext aContext)
Load the regex-segment map from the database using the segmentRegexDao.
|
protected void |
initRegexMap(List<SegmentRegex> regexList) |
void |
process(org.apache.uima.jcas.JCas aJCas)
Add Segment annotations to the cas.
|
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
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.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.resource.ResourceInitializationException
protected void initRegexMap(List<SegmentRegex> regexList)
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 © 2012-2017 The Apache Software Foundation. All Rights Reserved.