This configuration class controls when to re-estimate the basis-fMLLR during online decoding. More...
#include <online-gmm-decoding.h>
Public Member Functions | |
OnlineGmmDecodingAdaptationPolicyConfig () | |
void | Register (OptionsItf *opts) |
void | Check () const |
Check that configuration values make sense. More... | |
bool | DoAdapt (BaseFloat chunk_begin_secs, BaseFloat chunk_end_secs, bool is_first_utterance) const |
This function returns true if we are scheduled to re-estimate fMLLR somewhere in the interval [ chunk_begin_secs, chunk_end_secs ). More... | |
Public Attributes | |
BaseFloat | adaptation_first_utt_delay |
BaseFloat | adaptation_first_utt_ratio |
BaseFloat | adaptation_delay |
BaseFloat | adaptation_ratio |
This configuration class controls when to re-estimate the basis-fMLLR during online decoding.
The basic model is to re-estimate it on a certain time t (e.g. after 1 second) and then at a set of times forming a geometric series, e.g. 1.5, 1.5^2, etc. We specify different configurations for the first utterance of a speaker (which requires more frequent adaptation), and for subsequent utterances. We also re-estimate fMLLR at the end of every utterance, but this is done directly from the calling code, not by the class SingleUtteranceGmmDecoder.
Definition at line 56 of file online-gmm-decoding.h.
|
inline |
Definition at line 61 of file online-gmm-decoding.h.
void Check | ( | ) | const |
Check that configuration values make sense.
Definition at line 416 of file online-gmm-decoding.cc.
References KALDI_ASSERT.
Referenced by OnlineGmmDecodingAdaptationPolicyConfig::Register().
bool DoAdapt | ( | BaseFloat | chunk_begin_secs, |
BaseFloat | chunk_end_secs, | ||
bool | is_first_utterance | ||
) | const |
This function returns true if we are scheduled to re-estimate fMLLR somewhere in the interval [ chunk_begin_secs, chunk_end_secs ).
Definition at line 423 of file online-gmm-decoding.cc.
Referenced by SingleUtteranceGmmDecoder::AdvanceDecoding(), and OnlineGmmDecodingAdaptationPolicyConfig::Register().
|
inline |
Definition at line 67 of file online-gmm-decoding.h.
References OnlineGmmDecodingAdaptationPolicyConfig::Check(), OnlineGmmDecodingAdaptationPolicyConfig::DoAdapt(), and OptionsItf::Register().
Referenced by OnlineGmmDecodingConfig::Register().
BaseFloat adaptation_delay |
Definition at line 59 of file online-gmm-decoding.h.
BaseFloat adaptation_first_utt_delay |
Definition at line 57 of file online-gmm-decoding.h.
BaseFloat adaptation_first_utt_ratio |
Definition at line 58 of file online-gmm-decoding.h.
BaseFloat adaptation_ratio |
Definition at line 60 of file online-gmm-decoding.h.