Class AnnotationAdderAnnotator
- java.lang.Object
-
- org.apache.uima.analysis_component.AnalysisComponent_ImplBase
-
- org.apache.uima.analysis_component.Annotator_ImplBase
-
- org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
- de.julielab.jcore.ae.annotationadder.AnnotationAdderAnnotator
-
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
public class AnnotationAdderAnnotator extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotationAdderAnnotator.OffsetMode
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKEY_ANNOTATION_SOURCEstatic java.lang.StringPARAM_DEFAULT_UIMA_TYPEstatic java.lang.StringPARAM_OFFSET_MODE
-
Constructor Summary
Constructors Constructor Description AnnotationAdderAnnotator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(org.apache.uima.UimaContext aContext)This method is called a single time by the framework at component creation.voidprocess(org.apache.uima.jcas.JCas aJCas)This method is called for each document going through the component.-
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
getRequiredCasInterface, process
-
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase
getCasInstancesRequired, hasNext, next
-
-
-
-
Field Detail
-
KEY_ANNOTATION_SOURCE
public static final java.lang.String KEY_ANNOTATION_SOURCE
- See Also:
- Constant Field Values
-
PARAM_OFFSET_MODE
public static final java.lang.String PARAM_OFFSET_MODE
- See Also:
- Constant Field Values
-
PARAM_DEFAULT_UIMA_TYPE
public static final java.lang.String PARAM_DEFAULT_UIMA_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationExceptionThis method is called a single time by the framework at component creation. Here, descriptor parameters are read and initial setup is done.- Specified by:
initializein interfaceorg.apache.uima.analysis_component.AnalysisComponent- Overrides:
initializein classorg.apache.uima.analysis_component.AnalysisComponent_ImplBase- Throws:
org.apache.uima.resource.ResourceInitializationException
-
process
public void process(org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessExceptionThis method is called for each document going through the component. This is where the actual work happens.- Specified by:
processin classorg.apache.uima.analysis_component.JCasAnnotator_ImplBase- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
-
-