public abstract class JCasAnnotator_ImplBase extends Annotator_ImplBase
JCas interface. An Annotator is an
AnalysisComponent that may modify its input CAS, but never creates any new CASes as
output.| Constructor and Description |
|---|
JCasAnnotator_ImplBase() |
| Modifier and Type | Method and Description |
|---|---|
Class<JCas> |
getRequiredCasInterface()
Returns the specific CAS interface that this AnalysisComponent requires the framework to pass
to its
AnalysisComponent.process(AbstractCas) method. |
void |
process(AbstractCas aCAS)
Inputs a CAS to the AnalysisComponent.
|
abstract void |
process(JCas aJCas)
This method should be overriden by subclasses.
|
getCasInstancesRequired, hasNext, nextbatchProcessComplete, collectionProcessComplete, destroy, getContext, getLogger, getResultSpecification, initialize, reconfigure, setResultSpecificationpublic Class<JCas> getRequiredCasInterface()
AnalysisComponentAnalysisComponent.process(AbstractCas) method.AbstractCas.public void process(AbstractCas aCAS) throws AnalysisEngineProcessException
AnalysisComponentAnalysisComponent.hasNext() is called and returns false or until process is called again
(see class description).aCAS - A CAS that this AnalysisComponent should process. The framework will ensure that aCAS
implements the specific CAS interface specified by the
AnalysisComponent.getRequiredCasInterface() method.AnalysisEngineProcessException - if a problem occurs during processingpublic abstract void process(JCas aJCas) throws AnalysisEngineProcessException
Annotator_ImplBase.hasNext() is called and returns
false (see AnalysisComponent for details).aJCas - a JCAS that this AnalysisComponent should process.AnalysisEngineProcessException - if a problem occurs during processingCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.