|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.acoustic.Unit
Represents a unit of speech. Units may represent phones, words or any other suitable unit
Method Summary | |
boolean |
equals(java.lang.Object o)
Checks to see of an object is equal to this unit |
int |
getBaseID()
Gets the base ID for this unit |
Unit |
getBaseUnit()
Gets the base unit associated with this HMM |
Context |
getContext()
Returns the context for this unit |
static Unit[] |
getEmptyContext(int size)
Creates and returns an empty context with the given size. |
java.lang.String |
getName()
Gets the name for this unit |
int |
hashCode()
calculates a hashCode for this unit. |
boolean |
isContextDependent()
Determines if this unit is context dependent |
static boolean |
isContextMatch(Unit[] a,
Unit[] b)
Checks to see that there is 100% overlap in the given contexts |
boolean |
isFiller()
Determines if this unit is a filler unit |
boolean |
isPartialMatch(java.lang.String name,
Context context)
Checks to see if the given unit with associated contexts is a partial match for this unit. |
boolean |
isSilence()
Determines if this unit is the silence unit |
java.lang.String |
toString()
Converts to a string |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public boolean isContextDependent()
public Context getContext()
public boolean isFiller()
true
if the unit is a filler unitpublic boolean isSilence()
public boolean equals(java.lang.Object o)
o
- the object to check
public int hashCode()
public java.lang.String toString()
public java.lang.String getName()
public int getBaseID()
public Unit getBaseUnit()
public boolean isPartialMatch(java.lang.String name, Context context)
name
- the name of the unitcontext
- the context to match against
public static Unit[] getEmptyContext(int size)
size
- the size of the context
public static boolean isContextMatch(Unit[] a, Unit[] b)
a
- context to check for a matchb
- context to check for a match
true
if the contexts match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |