OnlineSilenceWeightingConfig Struct Reference

#include <online-ivector-feature.h>

Collaboration diagram for OnlineSilenceWeightingConfig:

Public Member Functions

bool Active () const
 
 OnlineSilenceWeightingConfig ()
 
void Register (OptionsItf *opts)
 
void RegisterWithPrefix (std::string prefix, OptionsItf *opts)
 

Public Attributes

std::string silence_phones_str
 
BaseFloat silence_weight
 
BaseFloat max_state_duration
 
BaseFloat new_data_weight
 

Detailed Description

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

Constructor & Destructor Documentation

◆ OnlineSilenceWeightingConfig()

Member Function Documentation

◆ Active()

bool Active ( ) const
inline

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

431  {
432  return !silence_phones_str.empty() && silence_weight != 1.0;
433  }

◆ Register()

void Register ( OptionsItf opts)
inline

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

References OptionsItf::Register().

438  {
439  opts->Register("silence-phones", &silence_phones_str, "(RE weighting in "
440  "iVector estimation for online decoding) List of integer ids of "
441  "silence phones, separated by colons (or commas). Data that "
442  "(according to the traceback of the decoder) corresponds to "
443  "these phones will be downweighted by --silence-weight.");
444  opts->Register("silence-weight", &silence_weight, "(RE weighting in "
445  "iVector estimation for online decoding) Weighting factor for frames "
446  "that the decoder trace-back identifies as silence; only "
447  "relevant if the --silence-phones option is set.");
448  opts->Register("max-state-duration", &max_state_duration, "(RE weighting in "
449  "iVector estimation for online decoding) Maximum allowed "
450  "duration of a single transition-id; runs with durations longer "
451  "than this will be weighted down to the silence-weight.");
452  }

◆ RegisterWithPrefix()

void RegisterWithPrefix ( std::string  prefix,
OptionsItf opts 
)
inline

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

References OnlineIvectorExtractionConfig::Register().

Referenced by OnlineNnet2FeaturePipelineConfig::Register().

454  {
455  ParseOptions po_prefix(prefix, opts);
456  this->Register(&po_prefix);
457  }

Member Data Documentation

◆ max_state_duration

BaseFloat max_state_duration

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

Referenced by OnlineSilenceWeighting::GetDeltaWeights().

◆ new_data_weight

BaseFloat new_data_weight

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

◆ silence_phones_str

std::string silence_phones_str

◆ silence_weight

BaseFloat silence_weight

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

Referenced by OnlineSilenceWeighting::GetDeltaWeights().


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