@PipeBitInfo(name="Annotation Remover", description="Removes annotations of a given type from the JCas.", role=SPECIAL, dependencies=BASE_TOKEN) public class FilterAnnotator extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Constructor and Description |
---|
FilterAnnotator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext annotCtx) |
void |
process(org.apache.uima.jcas.JCas jcas)
Checks if the annotation is of the type to be retained.
|
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public void initialize(org.apache.uima.UimaContext annotCtx) 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
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
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.