Package de.julielab.jcore.ae.lingscope
Class LingscopePosAnnotator
- 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.lingscope.LingscopePosAnnotator
-
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
public class LingscopePosAnnotator extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAM_CUE_MODELstatic StringPARAM_IS_NEGATION_ANNOTATORstatic StringPARAM_LIKELIHOOD_DICT_PATHString parameter indicating path to likelihood dictionary (One entry per line; Entries consist of tab-separated lemmatized likelihood indicators and assigned likelihood category)static StringPARAM_SCOPE_MODEL
-
Constructor Summary
Constructors Constructor Description LingscopePosAnnotator()
-
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
-
PARAM_CUE_MODEL
public static final String PARAM_CUE_MODEL
- See Also:
- Constant Field Values
-
PARAM_SCOPE_MODEL
public static final String PARAM_SCOPE_MODEL
- See Also:
- Constant Field Values
-
PARAM_LIKELIHOOD_DICT_PATH
public static final String PARAM_LIKELIHOOD_DICT_PATH
String parameter indicating path to likelihood dictionary (One entry per line; Entries consist of tab-separated lemmatized likelihood indicators and assigned likelihood category)- See Also:
- Constant Field Values
-
PARAM_IS_NEGATION_ANNOTATOR
public static final String PARAM_IS_NEGATION_ANNOTATOR
- 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
-
-