Lab4VitMain Class Reference

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

#include <lab4_vit.H>

List of all members.

Public Member Functions

 Lab4VitMain (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.
vector< int > & get_label_list ()
 Returns vector to place decoded labels in.
double get_acous_wgt () const
 Returns acoustic weight.
double get_log_prob_beam () const
 Returns beam width, log base e.
unsigned get_state_count_beam () const
 Returns rank beam; 0 signals no rank pruning.
matrix< FrameCell > & get_chart ()
 Returns full DP chart; only used for storing diagnostic info.


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

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

Initialize all data given parameters.


Member Function Documentation

bool Lab4VitMain::init_utt (  ) 

Called at the beginning of processing each utterance.

Returns whether at EOF.

void Lab4VitMain::finish_utt ( double  logProb  ) 

Called at the end of processing each utterance.

void Lab4VitMain::finish (  ) 

Called at end of program.

const Graph& Lab4VitMain::get_graph (  )  const [inline]

Returns decoding graph/HMM.

const matrix<double>& Lab4VitMain::get_gmm_probs (  )  const [inline]

Returns matrix of GMM log probs for each frame.

vector<int>& Lab4VitMain::get_label_list (  )  [inline]

Returns vector to place decoded labels in.

double Lab4VitMain::get_acous_wgt (  )  const [inline]

Returns acoustic weight.

double Lab4VitMain::get_log_prob_beam (  )  const [inline]

Returns beam width, log base e.

unsigned Lab4VitMain::get_state_count_beam (  )  const [inline]

Returns rank beam; 0 signals no rank pruning.

matrix<FrameCell>& Lab4VitMain::get_chart (  )  [inline]

Returns full DP chart; only used for storing diagnostic info.


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

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