All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.daisy.pipeline.nlp.LangDetector Maven / Gradle / Ivy

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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy