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
Configurable
newProperties
in interface Configurable
ps
- 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 Loader
public HMMManager getHMMManager()
getHMMManager
in interface Loader
public java.util.Map<java.lang.String,Unit> getContextIndependentUnits()
getContextIndependentUnits
in interface Loader
public int getLeftContextSize()
getLeftContextSize
in interface Loader
public int getRightContextSize()
getRightContextSize
in interface Loader
public java.util.Properties getProperties()
getProperties
in interface Loader
public void logInfo()
public Pool<float[]> getMeansPool()
getMeansPool
in interface Loader
public Pool<float[][]> getMeansTransformationMatrixPool()
getMeansTransformationMatrixPool
in interface Loader
public Pool<float[]> getMeansTransformationVectorPool()
getMeansTransformationVectorPool
in interface Loader
public Pool<float[]> getVariancePool()
getVariancePool
in interface Loader
public Pool<float[][]> getVarianceTransformationMatrixPool()
getVarianceTransformationMatrixPool
in interface Loader
public Pool<float[]> getVarianceTransformationVectorPool()
getVarianceTransformationVectorPool
in interface Loader
public GaussianWeights getMixtureWeights()
getMixtureWeights
in interface Loader
public Pool<float[][]> getTransitionMatrixPool()
getTransitionMatrixPool
in interface Loader
public float[][] getTransformMatrix()
getTransformMatrix
in interface Loader
public void update(Transform transform, ClusteredDensityFileData clusters)
Loader