opennlp.uima.doccat
Class LanguageDetector

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 opennlp.uima.doccat.LanguageDetector
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

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

Analysis Engine which can detected the language of a text. The AE uses the OpenNLP document categorizer and a special language detection model. The outcome of the document categorizer model is written into the language field of the CAS view.


Constructor Summary
LanguageDetector()
           
 
Method Summary
 void initialize(org.apache.uima.UimaContext context)
           
 void process(org.apache.uima.cas.CAS cas)
           
 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, reconfigure, setResultSpecification
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguageDetector

public LanguageDetector()
Method Detail

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

process

public void process(org.apache.uima.cas.CAS cas)
Specified by:
process in class org.apache.uima.analysis_component.CasAnnotator_ImplBase


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