|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the generic interface to the Acoustic Model for sphinx4
Field Summary | |
static java.lang.String |
PROP_LOCATION
The directory where the acoustic model data can be found. |
static java.lang.String |
PROP_LOCATION_DEFAULT
The default value of PROP_LOCATION. |
Method Summary | |
void |
allocate()
Gets this acoustic model ready to use, allocating all necessary resources. |
void |
deallocate()
Deallocates previously allcoated resources |
java.util.Iterator |
getContextIndependentUnitIterator()
Returns an iterator that can be used to iterate through all the CI units in the acoustic model |
java.util.Iterator |
getHMMIterator()
Returns an iterator that can be used to iterate through all the HMMs of the acoustic model |
int |
getLeftContextSize()
Returns the size of the left context for context dependent units |
java.lang.String |
getName()
Returns the name of this AcousticModel, or null if it has no name. |
java.util.Properties |
getProperties()
Returns the properties of this acoustic model. |
int |
getRightContextSize()
Returns the size of the right context for context dependent units |
HMM |
lookupNearestHMM(Unit unit,
HMMPosition position,
boolean exactMatch)
Given a unit, returns the HMM that best matches the given unit. |
Field Detail |
public static final java.lang.String PROP_LOCATION
public static final java.lang.String PROP_LOCATION_DEFAULT
Method Detail |
public void allocate() throws java.io.IOException
java.io.IOException
- if the model could not be loadedpublic void deallocate()
public java.lang.String getName()
public HMM lookupNearestHMM(Unit unit, HMMPosition position, boolean exactMatch)
unit
- the unit of interestposition
- the position of the unit of interestexactMatch
- if true, only an exact match is
acceptable.
public java.util.Iterator getHMMIterator()
HMM
.public java.util.Iterator getContextIndependentUnitIterator()
Unit
public int getLeftContextSize()
public int getRightContextSize()
public java.util.Properties getProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |