#include <lab2_vit.H>
Public Member Functions | |
Lab2VitMain (const map< string, string > ¶ms) | |
Initialize all data given parameters. | |
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. | |
const Graph & | get_graph () const |
Returns decoding graph/HMM. | |
const matrix< double > & | get_gmm_probs () const |
Returns matrix of GMM log probs for each frame. | |
matrix< VitCell > & | get_chart () |
Returns DP chart. | |
vector< int > & | get_label_list () |
Returns vector to place decoded labels in. | |
double | get_acous_wgt () const |
Returns acoustic weight. | |
bool | do_align () const |
Returns whether doing forced alignment or decoding. |
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.
Lab2VitMain::Lab2VitMain | ( | const map< string, string > & | params | ) |
Initialize all data given parameters.
bool Lab2VitMain::init_utt | ( | ) |
Called at the beginning of processing each utterance.
Returns whether at EOF.
void Lab2VitMain::finish_utt | ( | double | logProb | ) |
Called at the end of processing each utterance.
void Lab2VitMain::finish | ( | ) |
Called at end of program.
const Graph& Lab2VitMain::get_graph | ( | ) | const [inline] |
Returns decoding graph/HMM.
const matrix<double>& Lab2VitMain::get_gmm_probs | ( | ) | const [inline] |
Returns matrix of GMM log probs for each frame.
matrix<VitCell>& Lab2VitMain::get_chart | ( | ) | [inline] |
Returns DP chart.
vector<int>& Lab2VitMain::get_label_list | ( | ) | [inline] |
Returns vector to place decoded labels in.
double Lab2VitMain::get_acous_wgt | ( | ) | const [inline] |
Returns acoustic weight.
bool Lab2VitMain::do_align | ( | ) | const [inline] |
Returns whether doing forced alignment or decoding.