org.apache.uima.examples.tokenizer
Class SimpleTokenAndSentenceAnnotator

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.JCasAnnotator_ImplBase
              extended by org.apache.uima.examples.tokenizer.SimpleTokenAndSentenceAnnotator
All Implemented Interfaces:
AnalysisComponent

public class SimpleTokenAndSentenceAnnotator
extends JCasAnnotator_ImplBase

An example annotator that annotates Tokens and Sentences.


Constructor Summary
SimpleTokenAndSentenceAnnotator()
           
 
Method Summary
 void process(JCas aJCas)
          This method should be overriden by subclasses.
 
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, getResultSpecification, initialize, reconfigure, setResultSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTokenAndSentenceAnnotator

public SimpleTokenAndSentenceAnnotator()
Method Detail

process

public void process(JCas aJCas)
             throws AnalysisEngineProcessException
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 as Annotator_ImplBase.hasNext() is called and returns false (see AnalysisComponent for details).

Specified by:
process in class JCasAnnotator_ImplBase
Parameters:
aJCas - a JCAS that this AnalysisComponent should process.
Throws:
AnalysisEngineProcessException - if a problem occurs during processing


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.