public class DiagGmm extends ScoreCachingSenone
class in Kaldi.
,
Serialized FormConstructor and Description |
---|
DiagGmm(int id,
KaldiTextParser parser)
Constructs new mixture model.
|
Modifier and Type | Method and Description |
---|---|
float[] |
calculateComponentScore(Data data)
Calculates the component scores for the mixture components in this senone based upon the given feature.
|
float |
calculateScore(Data data)
Calculates the score for this senone based upon the given feature.
|
void |
dump(java.lang.String msg)
Dumps a senone
|
int |
getId()
Convenient method if 32-bit ID is required.
|
long |
getID()
Gets the ID for this senone
|
float[] |
getLogMixtureWeights() |
MixtureComponent[] |
getMixtureComponents()
Returns the mixture components associated with this Gaussian
|
getScore
public DiagGmm(int id, KaldiTextParser parser)
id
- identifier of this GMM as defined in the modelparser
- text format parserpublic int getId()
public float calculateScore(Data data)
ScoreCachingSenone
calculateScore
in class ScoreCachingSenone
data
- the feature vector to score this senone againstpublic float[] calculateComponentScore(Data data)
Senone
data
- the feature vector to score this senone againstpublic long getID()
Senone
public void dump(java.lang.String msg)
Senone
msg
- an annotation for the dumppublic MixtureComponent[] getMixtureComponents()
Senone
public float[] getLogMixtureWeights()