Klasse 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.LanguageDetector
Alle implementierten Schnittstellen:
org.apache.uima.analysis_component.AnalysisComponent

public class LanguageDetector extends org.apache.uima.analysis_component.CasAnnotator_ImplBase
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.

  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    initialize(org.apache.uima.UimaContext context)
     
    void
    process(org.apache.uima.cas.CAS cas)
     
    void
    typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
     

    Von Klasse geerbte Methoden org.apache.uima.analysis_component.CasAnnotator_ImplBase

    getRequiredCasInterface, process

    Von Klasse geerbte Methoden org.apache.uima.analysis_component.Annotator_ImplBase

    getCasInstancesRequired, hasNext, next

    Von Klasse geerbte Methoden org.apache.uima.analysis_component.AnalysisComponent_ImplBase

    batchProcessComplete, collectionProcessComplete, destroy, reconfigure, setResultSpecification

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • LanguageDetector

      public LanguageDetector()
  • Methodendetails

    • initialize

      public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
      Angegeben von:
      initialize in Schnittstelle org.apache.uima.analysis_component.AnalysisComponent
      Setzt außer Kraft:
      initialize in Klasse org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      Löst aus:
      org.apache.uima.resource.ResourceInitializationException
    • typeSystemInit

      public void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
      Setzt außer Kraft:
      typeSystemInit in Klasse org.apache.uima.analysis_component.CasAnnotator_ImplBase
      Löst aus:
      org.apache.uima.analysis_engine.AnalysisEngineProcessException
    • process

      public void process(org.apache.uima.cas.CAS cas)
      Angegeben von:
      process in Klasse org.apache.uima.analysis_component.CasAnnotator_ImplBase