Class LanguageDetector

java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.CasAnnotator_ImplBase
opennlp.uima.doccat.AbstractDocumentCategorizer
opennlp.uima.doccat.LanguageDetector
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

public class LanguageDetector extends AbstractDocumentCategorizer
Analysis Engine (AE) which can detect the language of a text.

The AE uses the OpenNLP DocumentCategorizer 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    setBestCategory(org.apache.uima.cas.CAS cas, String bestCategory)
     

    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, getLogger, getResultSpecification, reconfigure, setResultSpecification

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LanguageDetector

      public LanguageDetector()
  • Method Details