
cc.mallet.fst.SumLattice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcore-mallet-2.0.9 Show documentation
Show all versions of jcore-mallet-2.0.9 Show documentation
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 cc.mallet.fst.Transducer.State;
import cc.mallet.types.LabelVector;
import cc.mallet.types.Sequence;
/**
* Interface to perform forward-backward during training of a transducer.
*/
public interface SumLattice {
public double[][][] getXis();
public double[][] getGammas();
public double getTotalWeight ();
public double getGammaWeight (int inputPosition, State s);
public double getGammaProbability (int inputPosition, State s);
public double getXiProbability (int ip, State s1, State s2);
public double getXiWeight (int ip, State s1, State s2);
public int length ();
public Sequence getInput();
public double getAlpha (int ip, State s);
public double getBeta (int ip, State s);
public LabelVector getLabelingAtPosition (int outputPosition);
public Transducer getTransducer ();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy