|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.linguist.acoustic.UnitManager
public class UnitManager
Manages the set of units for a recognizer
| Field Summary | |
|---|---|
static Unit |
SILENCE
The silence unit |
static java.lang.String |
SILENCE_NAME
The name for the silence unit |
| Constructor Summary | |
|---|---|
UnitManager()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
|
Unit |
getUnit(java.lang.String name)
Gets or creates a unit from the unit pool |
Unit |
getUnit(java.lang.String name,
boolean filler)
Gets or creates a unit from the unit pool |
Unit |
getUnit(java.lang.String name,
boolean filler,
Context context)
Gets or creates a unit from the unit pool |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SILENCE_NAME
public static final Unit SILENCE
| Constructor Detail |
|---|
public UnitManager()
| Method Detail |
|---|
public void newProperties(PropertySheet ps)
throws PropertyException
Configurable
newProperties in interface Configurableps - a property sheet holding the new data
PropertyException - if there is a problem with the properties.public java.lang.String getName()
public Unit getUnit(java.lang.String name,
boolean filler,
Context context)
name - the name of the unitfiller - true if the unit is a filler unitcontext - the context for this unit
public Unit getUnit(java.lang.String name,
boolean filler)
name - the name of the unitfiller - true if the unit is a filler unit
public Unit getUnit(java.lang.String name)
name - the name of the unit
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||