This class is responsible for storing configuration variables, objects and options for OnlineNnet2FeaturePipeline (including the actual LDA and CMVN-stats matrices, and the iVector extractor, which is a member of ivector_extractor_info. More...
#include <online-nnet2-feature-pipeline.h>
Public Member Functions | |
OnlineNnet2FeaturePipelineInfo () | |
OnlineNnet2FeaturePipelineInfo (const OnlineNnet2FeaturePipelineConfig &config) | |
BaseFloat | FrameShiftInSeconds () const |
int32 | IvectorDim () |
Public Attributes | |
std::string | feature_type |
MfccOptions | mfcc_opts |
"mfcc" or "plp" or "fbank" More... | |
PlpOptions | plp_opts |
options for MFCC computation, if feature_type == "mfcc" More... | |
FbankOptions | fbank_opts |
Options for PLP computation, if feature_type == "plp". More... | |
bool | add_pitch |
Options for filterbank computation, if feature_type == "fbank". More... | |
PitchExtractionOptions | pitch_opts |
ProcessPitchOptions | pitch_process_opts |
Options for pitch extraction, if done. More... | |
bool | use_cmvn |
Options for pitch post-processing. More... | |
OnlineCmvnOptions | cmvn_opts |
std::string | global_cmvn_stats_rxfilename |
Options for online cmvn, read from config file. More... | |
bool | use_ivectors |
Filename used for reading global cmvn stats in OnlineCmvn. More... | |
OnlineIvectorExtractionInfo | ivector_extractor_info |
OnlineSilenceWeightingConfig | silence_weighting_config |
Config for weighting silence in iVector adaptation. More... | |
Private Member Functions | |
KALDI_DISALLOW_COPY_AND_ASSIGN (OnlineNnet2FeaturePipelineInfo) | |
This class is responsible for storing configuration variables, objects and options for OnlineNnet2FeaturePipeline (including the actual LDA and CMVN-stats matrices, and the iVector extractor, which is a member of ivector_extractor_info.
This class does not register options on the command line; instead, it is initialized from class OnlineNnet2FeaturePipelineConfig which reads the options from the command line. The reason for structuring it this way is to make it easier to configure from code as well as from the command line, as well as for easier multithreaded operation.
Definition at line 138 of file online-nnet2-feature-pipeline.h.
|
inline |
Definition at line 139 of file online-nnet2-feature-pipeline.h.
OnlineNnet2FeaturePipelineInfo | ( | const OnlineNnet2FeaturePipelineConfig & | config | ) |
Definition at line 25 of file online-nnet2-feature-pipeline.cc.
References OnlineNnet2FeaturePipelineConfig::add_pitch, OnlineNnet2FeaturePipelineInfo::add_pitch, OnlineNnet2FeaturePipelineConfig::cmvn_config, OnlineNnet2FeaturePipelineInfo::cmvn_opts, OnlineNnet2FeaturePipelineConfig::fbank_config, OnlineNnet2FeaturePipelineInfo::fbank_opts, OnlineNnet2FeaturePipelineConfig::feature_type, OnlineNnet2FeaturePipelineInfo::feature_type, OnlineNnet2FeaturePipelineConfig::global_cmvn_stats_rxfilename, OnlineNnet2FeaturePipelineInfo::global_cmvn_stats_rxfilename, OnlineIvectorExtractionInfo::Init(), OnlineNnet2FeaturePipelineConfig::ivector_extraction_config, OnlineNnet2FeaturePipelineInfo::ivector_extractor_info, KALDI_ERR, KALDI_WARN, OnlineNnet2FeaturePipelineConfig::mfcc_config, OnlineNnet2FeaturePipelineInfo::mfcc_opts, OnlineNnet2FeaturePipelineConfig::online_pitch_config, OnlineNnet2FeaturePipelineInfo::pitch_opts, OnlineNnet2FeaturePipelineInfo::pitch_process_opts, OnlineNnet2FeaturePipelineConfig::plp_config, OnlineNnet2FeaturePipelineInfo::plp_opts, kaldi::ReadConfigFromFile(), kaldi::ReadConfigsFromFile(), OnlineNnet2FeaturePipelineInfo::use_cmvn, and OnlineNnet2FeaturePipelineInfo::use_ivectors.
BaseFloat FrameShiftInSeconds | ( | ) | const |
Definition at line 231 of file online-nnet2-feature-pipeline.cc.
References KALDI_ERR.
Referenced by main().
|
inline |
Definition at line 179 of file online-nnet2-feature-pipeline.h.
References OnlineIvectorExtractionInfo::extractor, IvectorExtractor::IvectorDim(), and KALDI_DISALLOW_COPY_AND_ASSIGN.
Referenced by main().
|
private |
bool add_pitch |
Options for filterbank computation, if feature_type == "fbank".
Definition at line 155 of file online-nnet2-feature-pipeline.h.
Referenced by OnlineNnet2FeaturePipeline::OnlineNnet2FeaturePipeline(), and OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo().
OnlineCmvnOptions cmvn_opts |
Definition at line 162 of file online-nnet2-feature-pipeline.h.
Referenced by OnlineNnet2FeaturePipeline::OnlineNnet2FeaturePipeline(), and OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo().
FbankOptions fbank_opts |
Options for PLP computation, if feature_type == "plp".
Definition at line 152 of file online-nnet2-feature-pipeline.h.
Referenced by OnlineNnet2FeaturePipeline::OnlineNnet2FeaturePipeline(), and OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo().
std::string feature_type |
Definition at line 147 of file online-nnet2-feature-pipeline.h.
Referenced by OnlineNnet2FeaturePipeline::OnlineNnet2FeaturePipeline(), and OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo().
std::string global_cmvn_stats_rxfilename |
Options for online cmvn, read from config file.
Definition at line 163 of file online-nnet2-feature-pipeline.h.
Referenced by main(), OnlineNnet2FeaturePipeline::OnlineNnet2FeaturePipeline(), and OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo().
OnlineIvectorExtractionInfo ivector_extractor_info |
Definition at line 170 of file online-nnet2-feature-pipeline.h.
Referenced by main(), OnlineNnet2FeaturePipeline::OnlineNnet2FeaturePipeline(), and OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo().
MfccOptions mfcc_opts |
"mfcc" or "plp" or "fbank"
Definition at line 149 of file online-nnet2-feature-pipeline.h.
Referenced by OnlineNnet2FeaturePipeline::OnlineNnet2FeaturePipeline(), and OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo().
PitchExtractionOptions pitch_opts |
Definition at line 156 of file online-nnet2-feature-pipeline.h.
Referenced by OnlineNnet2FeaturePipeline::OnlineNnet2FeaturePipeline(), and OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo().
ProcessPitchOptions pitch_process_opts |
Options for pitch extraction, if done.
Definition at line 157 of file online-nnet2-feature-pipeline.h.
Referenced by OnlineNnet2FeaturePipeline::OnlineNnet2FeaturePipeline(), and OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo().
PlpOptions plp_opts |
options for MFCC computation, if feature_type == "mfcc"
Definition at line 151 of file online-nnet2-feature-pipeline.h.
Referenced by OnlineNnet2FeaturePipeline::OnlineNnet2FeaturePipeline(), and OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo().
OnlineSilenceWeightingConfig silence_weighting_config |
Config for weighting silence in iVector adaptation.
We declare this outside of ivector_extractor_info... it was just easier to set up the code that way; and also we think it's the kind of thing you might want to play with directly on the command line instead of inside sub-config-files.
Definition at line 177 of file online-nnet2-feature-pipeline.h.
Referenced by main().
bool use_cmvn |
Options for pitch post-processing.
If the user specified –cmvn-config, we set 'use_cmvn' to true, and the OnlineCmvn is added to the feature preparation pipeline.
Definition at line 161 of file online-nnet2-feature-pipeline.h.
Referenced by OnlineNnet2FeaturePipeline::OnlineNnet2FeaturePipeline(), and OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo().
bool use_ivectors |
Filename used for reading global cmvn stats in OnlineCmvn.
If the user specified –ivector-extraction-config, we assume we're using iVectors as an extra input to the neural net. Actually, we don't anticipate running this setup without iVectors.
Definition at line 169 of file online-nnet2-feature-pipeline.h.
Referenced by OnlineNnet2FeaturePipeline::GetAdaptationState(), OnlineNnet2FeaturePipeline::OnlineNnet2FeaturePipeline(), OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo(), and OnlineNnet2FeaturePipeline::SetAdaptationState().