edu.cmu.sphinx.linguist.flat
Class ExtendedUnitState
java.lang.Object
edu.cmu.sphinx.linguist.flat.SentenceHMMState
edu.cmu.sphinx.linguist.flat.UnitState
edu.cmu.sphinx.linguist.flat.ExtendedUnitState
- All Implemented Interfaces:
- SearchState, UnitSearchState, java.io.Serializable
public class ExtendedUnitState
- extends UnitState
A unit state that modifies how the unit state is cached. Caching keys are generated from the full name for the
sentence hmm. The default behavior for the unit (and all sentence hmms) is to generate the full name by combining the
name for this unit with the name of the parent. For the simple linguist, this is undesirable, because there are many
different names for the parent pronunciations (differing contexts). We want to be able to combine units that have
identical names and context and are in the same position in the same pronunciation. By defining getFullName to
combine the name and the pronunciation index we allow units with identical contexts in the same position in a
pronunciation to be combined.
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getFullName()
Gets the fullName for this state |
Methods inherited from class edu.cmu.sphinx.linguist.flat.UnitState |
getName, getOrder, getPosition, getPrettyName, getTail, getTypeLabel, getUnit, getValueSignature, isLast, isUnit, setTail |
Methods inherited from class edu.cmu.sphinx.linguist.flat.SentenceHMMState |
collectStates, connect, dumpAll, findArc, getAssociatedWord, getColor, 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 |
ExtendedUnitState
public ExtendedUnitState(PronunciationState parent,
int which,
Unit unit)
- Creates a UnitState. Gets the left and right contexts from the unit itself.
- Parameters:
parent
- the parent statewhich
- the index of the given stateunit
- the unit associated with this state
getFullName
public java.lang.String getFullName()
- Gets the fullName for this state
- Overrides:
getFullName
in class SentenceHMMState
- Returns:
- the full name for this state