org.daisy.pipeline.nlp.LangDetector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nlp-common Show documentation
Show all versions of nlp-common Show documentation
Common API for NLP functionality and XProc steps
The newest version!
package org.daisy.pipeline.nlp;
import java.util.Collection;
import java.util.Locale;
public interface LangDetector {
Locale findLang(Locale likelyLang, Collection text);
/**
* Light training phase.
*/
void train();
/**
* Allocate resources for further detections.
*/
void enable();
/**
* Release the resources allocated by enable(). It has no effect on the
* trained parameters.
*/
void disable();
}