public class KaldiLoader extends java.lang.Object implements Loader
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_LOCATION |
static java.lang.String |
PROP_UNIT_MANAGER |
| Constructor and Description |
|---|
KaldiLoader()
Constructs empty object.
|
KaldiLoader(java.lang.String location,
UnitManager unitManager) |
| 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()
Not implemented.
|
Pool<float[][]> |
getMeansTransformationMatrixPool()
Not implemented.
|
Pool<float[]> |
getMeansTransformationVectorPool()
Not implemented.
|
GaussianWeights |
getMixtureWeights()
Not implemented.
|
java.util.Properties |
getProperties()
Returns the model properties
|
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()
Not implemented.
|
Pool<float[][]> |
getTransitionMatrixPool()
Not implemented.
|
Pool<float[]> |
getVariancePool()
Not implemented.
|
Pool<float[][]> |
getVarianceTransformationMatrixPool()
Not implemented.
|
Pool<float[]> |
getVarianceTransformationVectorPool()
Not implemented.
|
void |
init(java.lang.String location,
UnitManager unitManager) |
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
|
@S4Component(type=UnitManager.class) public static final java.lang.String PROP_UNIT_MANAGER
@S4String(mandatory=true) public static final java.lang.String PROP_LOCATION
public KaldiLoader()
public KaldiLoader(java.lang.String location,
UnitManager unitManager)
public void init(java.lang.String location,
UnitManager unitManager)
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 void load()
throws java.io.IOException
public Pool<Senone> getSenonePool()
getSenonePool in interface Loaderpublic HMMManager getHMMManager()
getHMMManager in interface Loaderpublic java.util.Map<java.lang.String,Unit> getContextIndependentUnits()
getContextIndependentUnits in interface Loaderpublic int getLeftContextSize()
getLeftContextSize in interface Loaderpublic int getRightContextSize()
getRightContextSize in interface Loaderpublic java.util.Properties getProperties()
getProperties in interface Loaderpublic void logInfo()
public Pool<float[]> getMeansPool()
getMeansPool in interface Loaderpublic Pool<float[][]> getMeansTransformationMatrixPool()
getMeansTransformationMatrixPool in interface Loaderpublic Pool<float[]> getMeansTransformationVectorPool()
getMeansTransformationVectorPool in interface Loaderpublic Pool<float[]> getVariancePool()
getVariancePool in interface Loaderpublic Pool<float[][]> getVarianceTransformationMatrixPool()
getVarianceTransformationMatrixPool in interface Loaderpublic Pool<float[]> getVarianceTransformationVectorPool()
getVarianceTransformationVectorPool in interface Loaderpublic GaussianWeights getMixtureWeights()
getMixtureWeights in interface Loaderpublic Pool<float[][]> getTransitionMatrixPool()
getTransitionMatrixPool in interface Loaderpublic float[][] getTransformMatrix()
getTransformMatrix in interface Loaderpublic void update(Transform transform, ClusteredDensityFileData clusters)
Loader