org.apache.uima.annotator.calais
Class OpenCalaisAnnotator

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.annotator.calais.OpenCalaisAnnotator
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

public class OpenCalaisAnnotator
extends org.apache.uima.analysis_component.CasAnnotator_ImplBase


Constructor Summary
OpenCalaisAnnotator()
           
 
Method Summary
protected  InputStream callServiceOnText(String modifiedText)
           
 void initialize(org.apache.uima.UimaContext context)
           
 void process(org.apache.uima.cas.CAS aCas)
           
 void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
           
 
Methods inherited from class org.apache.uima.analysis_component.CasAnnotator_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, reconfigure, setResultSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenCalaisAnnotator

public OpenCalaisAnnotator()
Method Detail

process

public void process(org.apache.uima.cas.CAS aCas)
             throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Specified by:
process in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException

callServiceOnText

protected InputStream callServiceOnText(String modifiedText)
                                 throws IOException,
                                        UnsupportedEncodingException
Throws:
IOException
UnsupportedEncodingException

initialize

public void initialize(org.apache.uima.UimaContext context)
                throws org.apache.uima.resource.ResourceInitializationException
Specified by:
initialize in interface org.apache.uima.analysis_component.AnalysisComponent
Overrides:
initialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
Throws:
org.apache.uima.resource.ResourceInitializationException

typeSystemInit

public void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
                    throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Overrides:
typeSystemInit in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.