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

cc.mallet.fst.MaxLattice Maven / Gradle / Ivy

Go to download

MALLET is a Java-based package for statistical natural language processing, document classification, clustering, topic modeling, information extraction, and other machine learning applications to text.

The newest version!
package cc.mallet.fst;

import java.util.List;

import cc.mallet.types.Sequence;

import cc.mallet.fst.Transducer.State;

/** The interface to classes implementing the Viterbi algorithm, 
 * finding the best sequence of states for a given input sequence. */
public interface MaxLattice {
	public double getDelta (int inputPosition, int stateIndex);
	public Sequence bestOutputSequence ();
	public List> bestOutputSequences (int n);
	public Sequence bestStateSequence ();
	public List> bestStateSequences (int n);
	public Transducer getTransducer ();
	public double elementwiseAccuracy (Sequence referenceOutput);
}