|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.acoustic.HMMPosition
Defines possible positions of HMMs. Note that even though the positions are defined to be within words, some recognizers may classify positions in terms of other elements besides words.
Field Summary | |
static HMMPosition |
BEGIN
HMM is at the beginning position of the word |
static HMMPosition |
END
HMM is at the end position of the word |
static HMMPosition |
INTERNAL
HMM is completely internal to the word |
static int |
MAX_POSITIONS
The maximum number of HMM positions |
static HMMPosition |
SINGLE
HMM is at the beginning and the end of the word |
static HMMPosition |
UNDEFINED
HMM is at an undefined position n the word |
Method Summary | |
int |
getIndex()
Returns the index for this position. |
boolean |
isWordBeginning()
Determines if this position is word beginning position |
boolean |
isWordEnd()
Determines if this position is an end word position |
static java.util.Iterator |
iterator()
Returns an iterator for all HMMPositions |
static HMMPosition |
lookup(java.lang.String rep)
Looks up an HMMPosition baed upon its representation |
java.lang.String |
toString()
Returns a string representation of this object |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final HMMPosition BEGIN
public static final HMMPosition END
public static final HMMPosition SINGLE
public static final HMMPosition INTERNAL
public static final HMMPosition UNDEFINED
public static final int MAX_POSITIONS
Method Detail |
public static HMMPosition lookup(java.lang.String rep)
rep
- the string representation
public int getIndex()
public boolean isWordEnd()
public boolean isWordBeginning()
public static java.util.Iterator iterator()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |