|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.util.HMMPool
The HMMPool provides the ability to manage units via small integer IDs. Context Independent units and context dependent units can be converted to an ID. IDs can be used to quickly retrieve a unit or an hmm associated with the unit. This class operates under the constraint that context sizes are exactly one, which is generally only valid for large vocabulary tasks.
Constructor Summary | |
HMMPool(AcousticModel model,
java.util.logging.Logger logger,
UnitManager unitManager)
Constructs a HMMPool object. |
Method Summary | |
int |
buildID(int unitID,
int leftID,
int rightID)
Builds an id from the given unit and its left and right unit ids |
void |
dumpInfo()
Dumps out info about this pool |
HMM |
getHMM(int unitID,
HMMPosition position)
Given a unit id and a position, return the HMM associated with the unit/position |
int |
getID(Unit unit)
given a unit return its ID |
AcousticModel |
getModel()
|
int |
getNumCIUnits()
Returns the number of CI units |
Unit |
getUnit(int unitID)
Gets the unit for the given id |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HMMPool(AcousticModel model, java.util.logging.Logger logger, UnitManager unitManager)
model
- the model to use for the poolMethod Detail |
public AcousticModel getModel()
public int getNumCIUnits()
public Unit getUnit(int unitID)
unitID
- the id for the unit
public final HMM getHMM(int unitID, HMMPosition position)
unitID
- the id of the unitposition
- the position within the word
public int getID(Unit unit)
unit
- the unit
public int buildID(int unitID, int leftID, int rightID)
unitID
- the id of the central unitleftID
- the id of the left context unitrightID
- the id of the right context unit
public void dumpInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |