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
ConfigurablenewProperties in interface Configurableps - a property sheet holding the new dataPropertyException - if there is a problem with the properties.public java.util.Map<java.lang.String,Unit> getContextIndependentUnits()
LoadergetContextIndependentUnits in interface Loaderpublic void load()
throws java.io.IOException
Loaderpublic Pool<float[]> getMeansPool()
LoadergetMeansPool in interface Loaderpublic Pool<float[][]> getMeansTransformationMatrixPool()
LoadergetMeansTransformationMatrixPool in interface Loaderpublic Pool<float[]> getMeansTransformationVectorPool()
LoadergetMeansTransformationVectorPool in interface Loaderpublic Pool<float[]> getVariancePool()
LoadergetVariancePool in interface Loaderpublic Pool<float[][]> getVarianceTransformationMatrixPool()
LoadergetVarianceTransformationMatrixPool in interface Loaderpublic Pool<float[]> getVarianceTransformationVectorPool()
LoadergetVarianceTransformationVectorPool in interface Loaderpublic GaussianWeights getMixtureWeights()
LoadergetMixtureWeights in interface Loaderpublic Pool<float[][]> getTransitionMatrixPool()
LoadergetTransitionMatrixPool in interface Loaderpublic float[][] getTransformMatrix()
LoadergetTransformMatrix in interface Loaderpublic Pool<Senone> getSenonePool()
LoadergetSenonePool in interface Loaderpublic int getLeftContextSize()
LoadergetLeftContextSize in interface Loaderpublic int getRightContextSize()
LoadergetRightContextSize in interface Loaderpublic HMMManager getHMMManager()
LoadergetHMMManager in interface Loaderpublic void logInfo()
Loaderpublic java.util.Properties getProperties()
getProperties in interface Loaderpublic void update(Transform transform, ClusteredDensityFileData clusters)
Loader