org.apache.uima.alchemy.annotator
Class AbstractAlchemyAnnotator
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.alchemy.annotator.AbstractAlchemyAnnotator
- All Implemented Interfaces:
- org.apache.uima.analysis_component.AnalysisComponent
- Direct Known Subclasses:
- HtmlMicroformatsAnnotator, TextAnnotatedNamedEntityExtractionAnnotator, TextCategorizationAnnotator, TextConceptTaggingAnnotator, TextKeywordExtractionAnnotator, TextLanguageDetectionAnnotator, TextRankedNamedEntityExtractionAnnotator, TextSentimentAnalysisAnnotator, URLConceptTaggingAnnotator, URLMicroformatsAnnotator
public abstract class AbstractAlchemyAnnotator
- extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Base class for annotators which wrap AlchemyAPI web services
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, reconfigure, setResultSpecification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serviceParams
protected String serviceParams
AbstractAlchemyAnnotator
public AbstractAlchemyAnnotator()
initialize
public void initialize(org.apache.uima.UimaContext aContext)
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
cleanText
protected String cleanText(org.apache.uima.jcas.JCas aJCas)
process
public void process(org.apache.uima.jcas.JCas aJCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Specified by:
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
setDigesterProvider
public void setDigesterProvider(DigesterProvider digesterProvider)
getDigesterProvider
public DigesterProvider getDigesterProvider()
createDigester
protected abstract DigesterProvider createDigester()
createServiceURI
protected abstract URL createServiceURI()
throws MalformedURLException
- Throws:
MalformedURLException
getServiceParameters
protected abstract String[] getServiceParameters()
initializeRuntimeParameters
protected abstract void initializeRuntimeParameters(org.apache.uima.jcas.JCas aJCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.