FasterDecoderOptions Struct Reference

#include <faster-decoder.h>

Inheritance diagram for FasterDecoderOptions:
Collaboration diagram for FasterDecoderOptions:

Public Member Functions

 FasterDecoderOptions ()
void Register (OptionsItf *opts, bool full)

Public Attributes

BaseFloat beam
int32 max_active
int32 min_active
BaseFloat beam_delta
BaseFloat hash_ratio

Detailed Description

Definition at line 33 of file faster-decoder.h.

Constructor & Destructor Documentation

◆ FasterDecoderOptions()

Definition at line 39 of file faster-decoder.h.

39  : beam(16.0),
40  max_active(std::numeric_limits<int32>::max()),
41  min_active(20), // This decoder mostly used for
42  // alignment, use small default.
43  beam_delta(0.5),
44  hash_ratio(2.0) { }

Member Function Documentation

◆ Register()

void Register ( OptionsItf opts,
bool  full 

if "full", use obscure

options too. Depends on program.

Definition at line 45 of file faster-decoder.h.

References OptionsItf::Register().

Referenced by main(), and OnlineFasterDecoderOpts::Register().

45  {
46  opts->Register("beam", &beam, "Decoding beam. Larger->slower, more accurate.");
49  opts->Register("max-active", &max_active, "Decoder max active states. Larger->slower; "
50  "more accurate");
51  opts->Register("min-active", &min_active,
52  "Decoder min active states (don't prune if #active less than this).");
53  if (full) {
54  opts->Register("beam-delta", &beam_delta,
55  "Increment used in decoder [obscure setting]");
56  opts->Register("hash-ratio", &hash_ratio,
57  "Setting used in decoder to control hash behavior");
58  }
59  }

Member Data Documentation

◆ beam

BaseFloat beam

Definition at line 34 of file faster-decoder.h.

Referenced by kaldi::AlignUtteranceWrapper(), and FasterDecoder::GetCutoff().

◆ beam_delta

BaseFloat beam_delta

Definition at line 37 of file faster-decoder.h.

Referenced by FasterDecoder::GetCutoff().

◆ hash_ratio

BaseFloat hash_ratio

◆ max_active

int32 max_active

Definition at line 35 of file faster-decoder.h.

Referenced by FasterDecoder::FasterDecoder(), and FasterDecoder::GetCutoff().

◆ min_active

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