public interface AcousticModel extends Configurable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_LOCATION
The directory where the acoustic model data can be found.
|
Modifier and Type | Method and Description |
---|---|
void |
allocate()
Gets this acoustic model ready to use, allocating all necessary resources.
|
void |
deallocate()
Deallocates previously allocated resources
|
java.util.Iterator<Unit> |
getContextIndependentUnitIterator()
Returns an iterator that can be used to iterate through all the CI units in the acoustic model
|
java.util.Iterator<HMM> |
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.
|
newProperties
@S4String(defaultValue=".") static final java.lang.String PROP_LOCATION
void allocate() throws java.io.IOException
java.io.IOException
- if the model could not be loadedvoid deallocate()
java.lang.String getName()
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.java.util.Iterator<HMM> getHMMIterator()
HMM
.java.util.Iterator<Unit> getContextIndependentUnitIterator()
Unit
int getLeftContextSize()
int getRightContextSize()
java.util.Properties getProperties()