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

edu.berkeley.nlp.lm.io.NgramOrderedLmReaderCallback Maven / Gradle / Ivy

The newest version!
package edu.berkeley.nlp.lm.io;

/**
 * Callback that is called for each n-gram in the collection
 * 
 * @author adampauls
 * 
 * @param 
 *            Value type for each n-gram (either count of prob/backoff)
 */
public interface NgramOrderedLmReaderCallback extends LmReaderCallback
{

	/**
	 * Called when all n-grams of a given order are finished
	 * 
	 * @param order
	 */
	public void handleNgramOrderFinished(int order);

	/**
	 * Called when n-grams of a given order are started
	 * 
	 * @param order
	 */
	public void handleNgramOrderStarted(int order);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy