Class RoomNumberAnnotator
java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.fit.component.JCasAnnotator_ImplBase
org.apache.uima.fit.examples.tutorial.ex1.RoomNumberAnnotator
- All Implemented Interfaces:
AnalysisComponent
Here, the type capabilities are annotated using the @TypeCapability annotation which are used by
the AnalysisEngineFactory to specify this information in the descriptors returned by, e.g.
AnalysisEngineFactory.createPrimitive().
This class was copied from the uimaj-examples project and modified in following ways:
- The package name was changed to org.apache.uima.fit.tutorial.ex1
- The super class was changed to org.apache.uima.fit.component.JCasAnnotator_ImplBase
- The class is annotated with org.apache.uima.fit.descriptor.TypeCapability
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.uima.fit.component.JCasAnnotator_ImplBase
initialize
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
Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
batchProcessComplete, collectionProcessComplete, destroy, getContext, getLogger, getResultSpecification, reconfigure, setResultSpecification
-
Constructor Details
-
RoomNumberAnnotator
public RoomNumberAnnotator()
-
-
Method Details
-
process
Description copied from class:JCasAnnotator_ImplBase
This method should be overriden by subclasses. Inputs a JCAS to the AnalysisComponent. The AnalysisComponent "owns" this JCAS until such time asAnnotator_ImplBase.hasNext()
is called and returns false (seeAnalysisComponent
for details).- Specified by:
process
in classJCasAnnotator_ImplBase
- Parameters:
aJCas
- a JCAS that this AnalysisComponent should process.- See Also:
-