org.apache.uima.examples
Class SofaExampleAnnotator

java.lang.Object
  extended by org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      extended by org.apache.uima.analysis_component.Annotator_ImplBase
          extended by org.apache.uima.analysis_component.CasAnnotator_ImplBase
              extended by org.apache.uima.examples.SofaExampleAnnotator
All Implemented Interfaces:
AnalysisComponent

public class SofaExampleAnnotator
extends CasAnnotator_ImplBase

A simple multiple subject of analysis (multi-Sofa) example annotator Expects an English text Sofa as input Creates a German text Sofa as output This annotator has no configuration parameters, and requires no initialization method


Constructor Summary
SofaExampleAnnotator()
           
 
Method Summary
 void process(CAS aCas)
          Inputs a CAS to the AnalysisComponent.
 
Methods inherited from class org.apache.uima.analysis_component.CasAnnotator_ImplBase
getRequiredCasInterface, process, typeSystemInit
 
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, getResultSpecification, initialize, reconfigure, setResultSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SofaExampleAnnotator

public SofaExampleAnnotator()
Method Detail

process

public void process(CAS aCas)
             throws AnalysisEngineProcessException
Description copied from class: CasAnnotator_ImplBase
Inputs a CAS to the AnalysisComponent. This method should be overriden by subclasses to perform analysis of the CAS.

Specified by:
process in class CasAnnotator_ImplBase
Parameters:
aCas - A CAS that this AnalysisComponent should process.
Throws:
AnalysisEngineProcessException - if a problem occurs during processing


Copyright © 2013. All Rights Reserved.