public class HMMPool
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
HMMPool() |
|
HMMPool(AcousticModel model,
java.util.logging.Logger logger,
UnitManager unitManager)
Constructs a HMMPool object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
HMM |
getHMM(Unit base,
Unit lc,
Unit rc,
HMMPosition pos)
Retrieves an HMM for a unit in context.
|
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
|
boolean |
isValidID(int unitID) |
protected HMMPool()
public HMMPool(AcousticModel model, java.util.logging.Logger logger, UnitManager unitManager)
model
- the model to use for the poollogger
- the logger for messagesunitManager
- manager for unitspublic AcousticModel getModel()
public int getNumCIUnits()
public Unit getUnit(int unitID)
unitID
- the id for the unitpublic HMM getHMM(int unitID, HMMPosition position)
unitID
- the id of the unitposition
- the position within the wordpublic int getID(Unit unit)
unit
- the unitpublic boolean isValidID(int unitID)
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 unitpublic HMM getHMM(Unit base, Unit lc, Unit rc, HMMPosition pos)
base
- the base CI unitlc
- the left contextrc
- the right contextpos
- the position of the base unit within the wordpublic void dumpInfo()