|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.flat.SentenceHMMState
edu.cmu.sphinx.linguist.flat.UnitState
Represents a unit in an SentenceHMMS
Constructor Summary | |
UnitState(PronunciationState parent,
int which,
Unit unit)
Creates a UnitState. |
|
UnitState(Unit unit,
HMMPosition position)
Creates a UnitState with the given unit and HMM position. |
Method Summary | |
java.lang.String |
getName()
Gets the name for this state |
int |
getOrder()
Returns the state order for this state type |
HMMPosition |
getPosition()
Gets the position for this unit |
java.lang.String |
getPrettyName()
Gets the pretty name for this unit sate |
StatePath |
getTail()
Returns the tail for this unit state. |
java.lang.String |
getTypeLabel()
Retrieves a short label describing the type of this state. |
Unit |
getUnit()
Gets the unit associated with this state |
java.lang.String |
getValueSignature()
Returns the value signature of this unit |
boolean |
isLast()
Returns true if this unit is the last unit of the pronunciation |
boolean |
isUnit()
Determines if this state is a unit state |
void |
setTail(StatePath tail)
Sets the tail for this state |
Methods inherited from class edu.cmu.sphinx.linguist.flat.SentenceHMMState |
collectStates, connect, dumpAll, findArc, getAssociatedWord, getColor, getFullName, getLexState, getNumSuccessors, getParent, getSignature, getSuccessors, getTitle, getWhich, getWordHistory, isEmitting, isFanIn, isFinal, isProcessed, isSharedState, isWordStart, resetAllProcessed, setColor, setFanIn, setFinalState, setProcessed, setSharedState, setWhich, setWordStart, toPrettyString, toString, validateAll, visitStates |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.cmu.sphinx.linguist.SearchState |
getLexState, getSignature, getSuccessors, getWordHistory, isEmitting, isFinal, toPrettyString |
Constructor Detail |
public UnitState(PronunciationState parent, int which, Unit unit)
parent
- the parent statewhich
- the index of the given stateunit
- the unit associated with this statepublic UnitState(Unit unit, HMMPosition position)
unit
- the unit associated with this stateposition
- the HMM position of this unitMethod Detail |
public Unit getUnit()
getUnit
in interface UnitSearchState
public boolean isLast()
true
if the unit is the last unitpublic java.lang.String getName()
getName
in class SentenceHMMState
public java.lang.String getValueSignature()
getValueSignature
in class SentenceHMMState
public java.lang.String getPrettyName()
getPrettyName
in class SentenceHMMState
public java.lang.String getTypeLabel()
getTypeLabel
in class SentenceHMMState
public HMMPosition getPosition()
public StatePath getTail()
public void setTail(StatePath tail)
tail
- the tail for the statepublic boolean isUnit()
SentenceHMMState
isUnit
in class SentenceHMMState
true
if the state is a unit state.public int getOrder()
getOrder
in interface SearchState
getOrder
in class SentenceHMMState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |