|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.linguist.acoustic.tiedstate.CompositeSenone
public class CompositeSenone
Represents a composite senone. A composite senone consists of a set of all possible senones for a
given state. CompositeSenones are used when the exact context of a senone is not known. The CompositeSenone
represents all the possible senones.
| Constructor Summary | |
|---|---|
CompositeSenone(Senone[] senones,
float weight)
Constructs a CompositeSenone given the set of constiuent senones |
|
| Method Summary | |
|---|---|
float[] |
calculateComponentScore(Data feature)
Calculate scores for each component in the senone's distribution. |
static CompositeSenone |
create(java.util.Collection<Senone> senoneCollection,
float weight)
a factory method that creates a CompositeSenone from a list of senones. |
void |
dump(java.lang.String msg)
Dumps this senone |
boolean |
equals(java.lang.Object o)
Determines if two objects are equal |
long |
getID()
Gets the ID for this senone |
float |
getScore(Data feature)
Calculates the composite senone score. |
Senone[] |
getSenones()
Returns the set of senones that compose this composite senone. |
int |
hashCode()
Returns the hashcode for this object |
java.lang.String |
toString()
Retrieves a string form of this object |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeSenone(Senone[] senones,
float weight)
senones - the set of constiuent senones| Method Detail |
|---|
public static CompositeSenone create(java.util.Collection<Senone> senoneCollection,
float weight)
senoneCollection - the Collection of senones
public void dump(java.lang.String msg)
dump in interface Senonemsg - annotatin for the dumppublic float getScore(Data feature)
getScore in interface Senonefeature - the feature to score
public float[] calculateComponentScore(Data feature)
calculateComponentScore in interface Senonefeature - the current feature
public Senone[] getSenones()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare to this.
public int hashCode()
hashCode in class java.lang.Objectpublic long getID()
getID in interface Senonepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||