#include <lab2_train.H>
Public Member Functions | |
Lab2TrainMain (const map< string, string > ¶ms) | |
Initialize all data given parameters. | |
bool | init_iter () |
Called at the beginning of processing each iteration. | |
void | finish_iter () |
Called at the end of processing each iteration. | |
bool | init_utt () |
Called at the beginning of processing each utterance. | |
void | finish_utt (double logProb) |
Called at the end of processing each utterance. | |
void | finish () |
Called at end of program. | |
GmmSet & | get_gmm_set () |
Returns acoustic model. | |
const vector< GmmCount > & | get_gmm_counts () const |
Returns list of GMM counts. | |
const matrix< double > & | get_feats () const |
Returns feature vectors. |
Holds global variables and has routines for initializing variables and updating them for each utterance. We do this so that we can call this code from Java as well.
Lab2TrainMain::Lab2TrainMain | ( | const map< string, string > & | params | ) |
Initialize all data given parameters.
bool Lab2TrainMain::init_iter | ( | ) |
Called at the beginning of processing each iteration.
Returns whether at EOF.
void Lab2TrainMain::finish_iter | ( | ) |
Called at the end of processing each iteration.
bool Lab2TrainMain::init_utt | ( | ) |
Called at the beginning of processing each utterance.
Returns whether at EOF.
void Lab2TrainMain::finish_utt | ( | double | logProb | ) |
Called at the end of processing each utterance.
void Lab2TrainMain::finish | ( | ) |
Called at end of program.
GmmSet& Lab2TrainMain::get_gmm_set | ( | ) | [inline] |
Returns acoustic model.
const vector<GmmCount>& Lab2TrainMain::get_gmm_counts | ( | ) | const [inline] |
Returns list of GMM counts.
const matrix<double>& Lab2TrainMain::get_feats | ( | ) | const [inline] |
Returns feature vectors.