Lab2FbMain Class Reference

Encapsulation of main loop for Forward-Backward decoding. More...

#include <lab2_fb.H>

List of all members.

Public Member Functions

 Lab2FbMain (const map< string, string > &params)
 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.
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< FbCell > & get_chart ()
 Returns DP chart.
GmmSetget_gmm_set ()
 Returns acoustic model.
vector< GmmCount > & get_gmm_counts ()
 Returns object for storing GMM counts.
map< int, double > & get_trans_counts ()
 Returns object for storing transition counts.
const matrix< double > & get_feats () const
 Returns feature vectors.


Detailed Description

Encapsulation of main loop for Forward-Backward 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

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

Initialize all data given parameters.


Member Function Documentation

bool Lab2FbMain::init_iter (  ) 

Called at the beginning of processing each iteration.

Returns whether at EOF.

void Lab2FbMain::finish_iter (  ) 

Called at the end of processing each iteration.

bool Lab2FbMain::init_utt (  ) 

Called at the beginning of processing each utterance.

Returns whether at EOF.

void Lab2FbMain::finish_utt ( double  logProb  ) 

Called at the end of processing each utterance.

void Lab2FbMain::finish (  ) 

Called at end of program.

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

Returns decoding graph/HMM.

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

Returns matrix of GMM log probs for each frame.

matrix<FbCell>& Lab2FbMain::get_chart (  )  [inline]

Returns DP chart.

GmmSet& Lab2FbMain::get_gmm_set (  )  [inline]

Returns acoustic model.

vector<GmmCount>& Lab2FbMain::get_gmm_counts (  )  [inline]

Returns object for storing GMM counts.

map<int, double>& Lab2FbMain::get_trans_counts (  )  [inline]

Returns object for storing transition counts.

const matrix<double>& Lab2FbMain::get_feats (  )  const [inline]

Returns feature vectors.


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