Package opennlp.uima.doccat
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.LanguageDetector
 
 
 
 
- 
- All Implemented Interfaces:
- org.apache.uima.analysis_component.AnalysisComponent
 
 public class LanguageDetector extends org.apache.uima.analysis_component.CasAnnotator_ImplBaseAnalysis Engine (AE) which can detect the language of a text.The AE uses the OpenNLP DocumentCategorizerand a special language detection model. The outcome of the document categorizer model is written into the language field of theCASview.
- 
- 
Constructor SummaryConstructors Constructor Description LanguageDetector()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(org.apache.uima.UimaContext context)voidprocess(org.apache.uima.cas.CAS cas)voidtypeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)- 
Methods inherited from class org.apache.uima.analysis_component.CasAnnotator_ImplBasegetRequiredCasInterface, process
 - 
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBasegetCasInstancesRequired, hasNext, next
 
- 
 
- 
- 
- 
Method Detail- 
initializepublic void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException- Specified by:
- initializein interface- org.apache.uima.analysis_component.AnalysisComponent
- Overrides:
- initializein class- org.apache.uima.analysis_component.AnalysisComponent_ImplBase
- Throws:
- org.apache.uima.resource.ResourceInitializationException
 
 - 
typeSystemInitpublic void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException- Overrides:
- typeSystemInitin class- org.apache.uima.analysis_component.CasAnnotator_ImplBase
- Throws:
- org.apache.uima.analysis_engine.AnalysisEngineProcessException
 
 - 
processpublic void process(org.apache.uima.cas.CAS cas) - Specified by:
- processin class- org.apache.uima.analysis_component.CasAnnotator_ImplBase
 
 
- 
 
-