public class TrainerScore
extends java.lang.Object
| Constructor and Description |
|---|
TrainerScore(Data feature,
float probability,
HMMState state)
Creates a new buffer
|
TrainerScore(Data feature,
float probability,
HMMState state,
float[] logComponentProb)
Creates a new buffer
|
TrainerScore(Data feature,
float probability,
HMMState state,
float logAlpha,
float[] logComponentProb)
Creates a new buffer
|
TrainerScore(Data feature,
float probability,
HMMState state,
float logAlpha,
float logBeta,
float[] logComponentProb)
Creates a new buffer
|
TrainerScore(Data feature,
float probability,
int senone)
Creates a new TrainerScore
|
| Modifier and Type | Method and Description |
|---|---|
float |
getAlpha()
Retrieves the forward probability.
|
float |
getBeta()
Retrieves the backward probability.
|
float[] |
getComponentGamma()
Retrieves the mixture component a posteriori probability.
|
Data |
getData()
Retrieves the Data.
|
float |
getGamma()
Retrieves the a posteriori probability.
|
static float |
getLogLikelihood()
Retrieves the utterance's log likelihood
|
float |
getScalingFactor()
Retrieves the scaling factor.
|
float |
getScore()
Retrieves the probability.
|
Senone |
getSenone()
Retrieves the senone.
|
int |
getSenoneID()
Retrieves the senone ID.
|
HMMState |
getState()
Retrieves the HMM state.
|
void |
setAlpha(float logAlpha)
Sets the forward probability.
|
void |
setBeta(float logBeta)
Sets the backward probability.
|
void |
setGamma()
Computes the a posteriori probability.
|
static void |
setLogLikelihood(float likelihood)
Sets the overall likelihood.
|
void |
setScalingFactor(float logScalingFactor)
Sets the scaling factor for this frame..
|
public TrainerScore(Data feature, float probability, int senone)
feature - the current featureprobability - the score for the current framesenone - the id for the current senonepublic TrainerScore(Data feature, float probability, HMMState state, float logAlpha, float logBeta, float[] logComponentProb)
feature - the current featureprobability - the score for the current framestate - the HMMState for this score objectlogAlpha - the forward probabilitylogBeta - the backward probabilitylogComponentProb - the mixture component a posteriori probabilitiespublic TrainerScore(Data feature, float probability, HMMState state, float logAlpha, float[] logComponentProb)
feature - the current featureprobability - the score for the current framestate - the HMMState for this score objectlogAlpha - the forward probabilitylogComponentProb - the mixture component a posteriori probabilitiespublic TrainerScore(Data feature, float probability, HMMState state, float[] logComponentProb)
feature - the current featureprobability - the score for the current framestate - the HMMState for this score objectlogComponentProb - the mixture component a posteriori probabilitiespublic Data getData()
public float getScore()
public float getAlpha()
public float getBeta()
public static float getLogLikelihood()
public float getGamma()
public float[] getComponentGamma()
public float getScalingFactor()
public static void setLogLikelihood(float likelihood)
likelihood - the log likelihood of the whole utterancepublic void setAlpha(float logAlpha)
logAlpha - the forward log probabilitypublic void setBeta(float logBeta)
logBeta - the backward log probabilitypublic void setGamma()
public void setScalingFactor(float logScalingFactor)
logScalingFactor - the log scaling factorpublic int getSenoneID()
public Senone getSenone()
public HMMState getState()