public class ModelInitializerLoader extends java.lang.Object implements Loader
Mixture weights and transition probabilities are maintained in logMath log base,
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_DIR |
static java.lang.String |
LOCATION |
static java.lang.String |
MODEL_NAME |
static java.lang.String |
MODEL_VERSION |
static java.lang.String |
PHONE_LIST |
static java.lang.String |
PROP_FILE |
static java.lang.String |
PROP_MC_FLOOR
Mixture component score floor.
|
static java.lang.String |
PROP_MW_FLOOR
Mixture weight floor.
|
static java.lang.String |
PROP_UNIT_MANAGER |
static java.lang.String |
PROP_USE_CD_UNITS |
static java.lang.String |
PROP_VARIANCE_FLOOR |
Constructor and Description |
---|
ModelInitializerLoader() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,Unit> |
getContextIndependentUnits()
Returns the map of context indepent units.
|
HMMManager |
getHMMManager()
Returns the HMM Manager for this loader.
|
int |
getLeftContextSize()
Returns the size of the left context for context dependent units.
|
Pool<float[]> |
getMeansPool()
Gets the pool of means for this loader.
|
Pool<float[][]> |
getMeansTransformationMatrixPool()
Gets the means transformation matrix pool.
|
Pool<float[]> |
getMeansTransformationVectorPool()
Gets the means transformation vectors pool.
|
GaussianWeights |
getMixtureWeights()
Gets the mixture weight pool.
|
java.util.Properties |
getProperties() |
int |
getRightContextSize()
Returns the size of the right context for context dependent units.
|
Pool<Senone> |
getSenonePool()
Gets the senone pool for this loader.
|
float[][] |
getTransformMatrix()
Gets the transformation matrix.
|
Pool<float[][]> |
getTransitionMatrixPool()
Gets the transition matrix pool.
|
Pool<float[]> |
getVariancePool()
Gets the variance pool.
|
Pool<float[][]> |
getVarianceTransformationMatrixPool()
Gets the variance transformation matrix pool.
|
Pool<float[]> |
getVarianceTransformationVectorPool()
Gets the variance transformation vectors pool.
|
void |
load()
Loads the acoustic model.
|
void |
logInfo()
logs information about this loader
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
void |
update(Transform transform,
ClusteredDensityFileData clusters)
Apply the transform
|
public static final java.lang.String MODEL_VERSION
@S4String(defaultValue="model") public static final java.lang.String MODEL_NAME
@S4String(defaultValue=".") public static final java.lang.String LOCATION
@S4String(defaultValue="phonelist") public static final java.lang.String PHONE_LIST
@S4String(defaultValue="data") public static final java.lang.String DATA_DIR
@S4String(defaultValue="model.props") public static final java.lang.String PROP_FILE
@S4Component(type=UnitManager.class) public static final java.lang.String PROP_UNIT_MANAGER
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_USE_CD_UNITS
@S4Double(defaultValue=9.999999747378752E-5) public static final java.lang.String PROP_VARIANCE_FLOOR
@S4Double(defaultValue=0.0) public static final java.lang.String PROP_MC_FLOOR
@S4Double(defaultValue=1.0000000116860974E-7) public static final java.lang.String PROP_MW_FLOOR
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.public java.util.Map<java.lang.String,Unit> getContextIndependentUnits()
Loader
getContextIndependentUnits
in interface Loader
public void load() throws java.io.IOException
Loader
public Pool<float[]> getMeansPool()
Loader
getMeansPool
in interface Loader
public Pool<float[][]> getMeansTransformationMatrixPool()
Loader
getMeansTransformationMatrixPool
in interface Loader
public Pool<float[]> getMeansTransformationVectorPool()
Loader
getMeansTransformationVectorPool
in interface Loader
public Pool<float[]> getVariancePool()
Loader
getVariancePool
in interface Loader
public Pool<float[][]> getVarianceTransformationMatrixPool()
Loader
getVarianceTransformationMatrixPool
in interface Loader
public Pool<float[]> getVarianceTransformationVectorPool()
Loader
getVarianceTransformationVectorPool
in interface Loader
public GaussianWeights getMixtureWeights()
Loader
getMixtureWeights
in interface Loader
public Pool<float[][]> getTransitionMatrixPool()
Loader
getTransitionMatrixPool
in interface Loader
public float[][] getTransformMatrix()
Loader
getTransformMatrix
in interface Loader
public Pool<Senone> getSenonePool()
Loader
getSenonePool
in interface Loader
public int getLeftContextSize()
Loader
getLeftContextSize
in interface Loader
public int getRightContextSize()
Loader
getRightContextSize
in interface Loader
public HMMManager getHMMManager()
Loader
getHMMManager
in interface Loader
public void logInfo()
Loader
public java.util.Properties getProperties()
getProperties
in interface Loader
public void update(Transform transform, ClusteredDensityFileData clusters)
Loader