Lab2VitMain Class Reference

Encapsulation of main loop for Viterbi decoding. More...

#include <lab2_vit.H>

List of all members.

Public Member Functions

 Lab2VitMain (const map< string, string > &params)
 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 Graphget_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.


Detailed Description

Encapsulation of main loop for Viterbi 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.


Constructor & Destructor Documentation

Lab2VitMain::Lab2VitMain ( const map< string, string > &  params  ) 

Initialize all data given parameters.


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Generated on Thu Nov 5 09:26:36 2009 for asr_lib by  doxygen 1.5.5