OnlineIvectorExtractionConfig Struct Reference

This class includes configuration variables relating to the online iVector extraction, but not including configuration for the "base feature", i.e. More...

#include <online-ivector-feature.h>

Collaboration diagram for OnlineIvectorExtractionConfig:

Public Member Functions

 OnlineIvectorExtractionConfig ()
 
void Register (OptionsItf *opts)
 

Public Attributes

std::string lda_mat_rxfilename
 
std::string global_cmvn_stats_rxfilename
 
std::string splice_config_rxfilename
 
std::string cmvn_config_rxfilename
 
bool online_cmvn_iextractor
 
std::string diag_ubm_rxfilename
 
std::string ivector_extractor_rxfilename
 
int32 ivector_period
 
int32 num_gselect
 
BaseFloat min_post
 
BaseFloat posterior_scale
 
BaseFloat max_count
 
int32 num_cg_iters
 
bool use_most_recent_ivector
 
bool greedy_ivector_extractor
 
BaseFloat max_remembered_frames
 

Detailed Description

This class includes configuration variables relating to the online iVector extraction, but not including configuration for the "base feature", i.e.

MFCC/PLP/filterbank, which is an input to this feature. This configuration class can be used from the command line, but before giving it to the code we create a config class called OnlineIvectorExtractionInfo which contains the actual configuration classes as well as various objects that are needed. The principle is that any code should be callable from other code, so we didn't want to force configuration classes to be read from disk.

Definition at line 55 of file online-ivector-feature.h.

Constructor & Destructor Documentation

◆ OnlineIvectorExtractionConfig()

Definition at line 105 of file online-ivector-feature.h.

Member Function Documentation

◆ Register()

void Register ( OptionsItf opts)
inline

Definition at line 113 of file online-ivector-feature.h.

References OptionsItf::Register().

Referenced by main(), and OnlineSilenceWeightingConfig::RegisterWithPrefix().

113  {
114  opts->Register("lda-matrix", &lda_mat_rxfilename, "Filename of LDA matrix, "
115  "e.g. final.mat; used for iVector extraction. ");
116  opts->Register("global-cmvn-stats", &global_cmvn_stats_rxfilename,
117  "(Extended) filename for global CMVN stats, used in iVector "
118  "extraction, obtained for example from "
119  "'matrix-sum scp:data/train/cmvn.scp -', only used for "
120  "iVector extraction");
121  opts->Register("cmvn-config", &cmvn_config_rxfilename, "Configuration "
122  "file for online CMVN features (e.g. conf/online_cmvn.conf),"
123  "only used for iVector extraction. Contains options "
124  "as for the program 'apply-cmvn-online'");
125  opts->Register("online-cmvn-iextractor", &online_cmvn_iextractor,
126  "add online-cmvn to feature pipeline of ivector extractor, "
127  "use the cmvn setup from the UBM. Note: the default of "
128  "false is what we historically used; we'd use true if "
129  "we were using CMVN'ed features for the neural net.");
130  opts->Register("splice-config", &splice_config_rxfilename, "Configuration file "
131  "for frame splicing (--left-context and --right-context "
132  "options); used for iVector extraction.");
133  opts->Register("diag-ubm", &diag_ubm_rxfilename, "Filename of diagonal UBM "
134  "used to obtain posteriors for iVector extraction, e.g. "
135  "final.dubm");
136  opts->Register("ivector-extractor", &ivector_extractor_rxfilename,
137  "Filename of iVector extractor, e.g. final.ie");
138  opts->Register("ivector-period", &ivector_period, "Frequency with which "
139  "we extract iVectors for neural network adaptation");
140  opts->Register("num-gselect", &num_gselect, "Number of Gaussians to select "
141  "for iVector extraction");
142  opts->Register("min-post", &min_post, "Threshold for posterior pruning in "
143  "iVector extraction");
144  opts->Register("posterior-scale", &posterior_scale, "Scale for posteriors in "
145  "iVector extraction (may be viewed as inverse of prior scale)");
146  opts->Register("max-count", &max_count, "Maximum data count we allow before "
147  "we start scaling the stats down (if nonzero)... helps to make "
148  "iVectors from long utterances look more typical. Interpret "
149  "as a frame-count times --posterior-scale, typically 1/10 of "
150  "a number of frames. Suggest 100.");
151  opts->Register("use-most-recent-ivector", &use_most_recent_ivector, "If true, "
152  "always use most recent available iVector, rather than the "
153  "one for the designated frame.");
154  opts->Register("greedy-ivector-extractor", &greedy_ivector_extractor, "If "
155  "true, 'read ahead' as many frames as we currently have available "
156  "when extracting the iVector. May improve iVector quality.");
157  opts->Register("max-remembered-frames", &max_remembered_frames, "The maximum "
158  "number of frames of adaptation history that we carry through "
159  "to later utterances of the same speaker (having a finite "
160  "number allows the speaker adaptation state to change over "
161  "time). Interpret as a real frame count, i.e. not a count "
162  "scaled by --posterior-scale.");
163  }

Member Data Documentation

◆ cmvn_config_rxfilename

std::string cmvn_config_rxfilename

Definition at line 60 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init().

◆ diag_ubm_rxfilename

std::string diag_ubm_rxfilename

Definition at line 63 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init().

◆ global_cmvn_stats_rxfilename

std::string global_cmvn_stats_rxfilename

Definition at line 57 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init().

◆ greedy_ivector_extractor

bool greedy_ivector_extractor

Definition at line 94 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init().

◆ ivector_extractor_rxfilename

std::string ivector_extractor_rxfilename

Definition at line 64 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init().

◆ ivector_period

int32 ivector_period

Definition at line 69 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init(), and main().

◆ lda_mat_rxfilename

std::string lda_mat_rxfilename

Definition at line 56 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init().

◆ max_count

BaseFloat max_count

Definition at line 77 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init().

◆ max_remembered_frames

◆ min_post

BaseFloat min_post

Definition at line 72 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init().

◆ num_cg_iters

int32 num_cg_iters

Definition at line 83 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init().

◆ num_gselect

int32 num_gselect

Definition at line 70 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init().

◆ online_cmvn_iextractor

bool online_cmvn_iextractor

Definition at line 61 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init().

◆ posterior_scale

◆ splice_config_rxfilename

std::string splice_config_rxfilename

Definition at line 59 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init().

◆ use_most_recent_ivector

bool use_most_recent_ivector

Definition at line 91 of file online-ivector-feature.h.

Referenced by OnlineIvectorExtractionInfo::Init(), and main().


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