This class is used to read, store and give access to the models used for 3 phases of decoding (first-pass with online-CMN features; the ML models used for estimating transforms; and the discriminatively trained models). More...
#include <online-gmm-decoding.h>
Public Member Functions | |
OnlineGmmDecodingModels (const OnlineGmmDecodingConfig &config) | |
const TransitionModel & | GetTransitionModel () const |
const AmDiagGmm & | GetOnlineAlignmentModel () const |
const AmDiagGmm & | GetModel () const |
const AmDiagGmm & | GetFinalModel () const |
const BasisFmllrEstimate & | GetFmllrBasis () const |
Private Attributes | |
TransitionModel | tmodel_ |
AmDiagGmm | online_alignment_model_ |
AmDiagGmm | model_ |
AmDiagGmm | rescore_model_ |
BasisFmllrEstimate | fmllr_basis_ |
This class is used to read, store and give access to the models used for 3 phases of decoding (first-pass with online-CMN features; the ML models used for estimating transforms; and the discriminatively trained models).
It takes care of the logic whereby if, say, the last model isn't given we default to the second model, and so on, and it interpretes the filenames from the config object. It is passed as a const reference to other objects in this header.
Definition at line 166 of file online-gmm-decoding.h.
OnlineGmmDecodingModels | ( | const OnlineGmmDecodingConfig & | config | ) |
Definition at line 346 of file online-gmm-decoding.cc.
References TransitionModel::Compatible(), OnlineGmmDecodingConfig::fmllr_basis_rxfilename, KALDI_ASSERT, KALDI_ERR, OnlineGmmDecodingConfig::model_rxfilename, OnlineGmmDecodingConfig::online_alimdl_rxfilename, TransitionModel::Read(), OnlineGmmDecodingConfig::rescore_model_rxfilename, and Input::Stream().
const AmDiagGmm & GetFinalModel | ( | ) | const |
Definition at line 404 of file online-gmm-decoding.cc.
Referenced by SingleUtteranceGmmDecoder::GetLattice(), and SingleUtteranceGmmDecoder::RescoringIsNeeded().
const BasisFmllrEstimate & GetFmllrBasis | ( | ) | const |
Definition at line 411 of file online-gmm-decoding.cc.
Referenced by SingleUtteranceGmmDecoder::EstimateFmllr().
const AmDiagGmm & GetModel | ( | ) | const |
Definition at line 400 of file online-gmm-decoding.cc.
Referenced by SingleUtteranceGmmDecoder::AdvanceDecoding(), SingleUtteranceGmmDecoder::EstimateFmllr(), SingleUtteranceGmmDecoder::GetGaussianPosteriors(), and SingleUtteranceGmmDecoder::RescoringIsNeeded().
const AmDiagGmm & GetOnlineAlignmentModel | ( | ) | const |
Definition at line 393 of file online-gmm-decoding.cc.
Referenced by SingleUtteranceGmmDecoder::AdvanceDecoding(), and SingleUtteranceGmmDecoder::GetGaussianPosteriors().
const TransitionModel & GetTransitionModel | ( | ) | const |
Definition at line 389 of file online-gmm-decoding.cc.
Referenced by SingleUtteranceGmmDecoder::AdvanceDecoding(), SingleUtteranceGmmDecoder::EndpointDetected(), SingleUtteranceGmmDecoder::GetGaussianPosteriors(), and SingleUtteranceGmmDecoder::GetLattice().
|
private |
Definition at line 195 of file online-gmm-decoding.h.
|
private |
Definition at line 189 of file online-gmm-decoding.h.
|
private |
Definition at line 187 of file online-gmm-decoding.h.
|
private |
Definition at line 192 of file online-gmm-decoding.h.
|
private |
Definition at line 184 of file online-gmm-decoding.h.