public class SimpleTrainManager extends java.lang.Object implements TrainManager
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
AM_COLLECTION  | 
static java.lang.String | 
CONTROL_FILE  | 
static java.lang.String | 
DUMP_MEMORY_INFO
The property for the boolean property that controls whether or not the recognizer will display detailed
 memory information while it is running. 
 | 
static java.lang.String | 
INIT_LEARNER  | 
static java.lang.String | 
LEARNER  | 
static java.lang.String | 
UNIT_MANAGER  | 
PROP_MAXIMUM_ITERATION, PROP_MINIMUM_IMPROVEMENT| Constructor and Description | 
|---|
SimpleTrainManager()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
copyModels(java.lang.String context)
Copy the model. 
 | 
void | 
initializeModels(java.lang.String context)
Initializes the acoustic models. 
 | 
void | 
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. 
 | 
void | 
saveModels(java.lang.String context)
Saves the acoustic models. 
 | 
void | 
train()
Do the train. 
 | 
void | 
trainContextIndependentModels(java.lang.String context)
Trains context independent models. 
 | 
@S4Component(type=ControlFile.class) public static final java.lang.String CONTROL_FILE
@S4Component(type=Learner.class) public static final java.lang.String LEARNER
@S4Component(type=Learner.class) public static final java.lang.String INIT_LEARNER
@S4Component(type=UnitManager.class) public static final java.lang.String UNIT_MANAGER
@S4ComponentList(type=TrainerAcousticModel.class) public static final java.lang.String AM_COLLECTION
@S4Boolean(defaultValue=false) public static final java.lang.String DUMP_MEMORY_INFO
true.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 train()
train in interface TrainManagerpublic void copyModels(java.lang.String context)
                throws java.io.IOException
This method copies to model set, possibly to a new location and new format. This is useful if one wants to convert from binary to ascii and vice versa, or from a directory structure to a JAR file. If only one model is used, then name can be null.
copyModels in interface TrainManagercontext - this TrainManager's contextjava.io.IOException - if an error occurs while loading the datapublic void saveModels(java.lang.String context)
                throws java.io.IOException
saveModels in interface TrainManagercontext - the context of this TrainManagerjava.io.IOException - if an error occurs while loading the datapublic void initializeModels(java.lang.String context)
                      throws java.io.IOException
initializeModels in interface TrainManagercontext - the context of this TrainManagerjava.io.IOException - if something went wrongpublic void trainContextIndependentModels(java.lang.String context)
                                   throws java.io.IOException
trainContextIndependentModels in interface TrainManagercontext - the context of this train manager.java.io.IOException - if IO went wrong