Class EllipsisAnnotator
- 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.coordbaseline.annotators.EllipsisAnnotator
-
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
public class EllipsisAnnotator extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMPONENT_ID
-
Constructor Summary
Constructors Constructor Description EllipsisAnnotator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(org.apache.uima.UimaContext aContext)voidprocess(org.apache.uima.jcas.JCas jcas)This method is used to process the information found so far (e.g.-
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
-
COMPONENT_ID
public static final String COMPONENT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationException- 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 jcas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessExceptionThis method is used to process the information found so far (e.g. by the Tokenizer) and add new resolved ellipsis information to the CAS. For every sentence within the CAS, a coordinationTokenList will be created. This list will be just another manifestation of the sentence which is suitable for baseline prediction of resolved ellipses. Once the coordiantionTokenList is processed, the new information will be added to the CAS (e.g. by creating the accordant Objects like resolved ellipses and writing them to the CAS).- Specified by:
processin classorg.apache.uima.analysis_component.JCasAnnotator_ImplBase- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
-
-