RandFstOptions Struct Reference

#include <rand-fst.h>

Collaboration diagram for RandFstOptions:

Public Member Functions

 RandFstOptions ()
 

Public Attributes

size_t n_syms
 
size_t n_states
 
size_t n_arcs
 
size_t n_final
 
bool allow_empty
 
bool acyclic
 
float weight_multiplier
 

Detailed Description

Definition at line 34 of file rand-fst.h.

Constructor & Destructor Documentation

◆ RandFstOptions()

RandFstOptions ( )
inline

Definition at line 42 of file rand-fst.h.

References kaldi::Rand().

42  { // Initializes the options randomly.
43  n_syms = 2 + kaldi::Rand() % 5;
44  n_states = 3 + kaldi::Rand() % 10;
45  n_arcs = 5 + kaldi::Rand() % 30;
46  n_final = 1 + kaldi::Rand()%3;
47  allow_empty = true;
48  acyclic = false;
49  weight_multiplier = 0.25;
50  }
float weight_multiplier
Definition: rand-fst.h:41
int Rand(struct RandomState *state)
Definition: kaldi-math.cc:45

Member Data Documentation

◆ acyclic

◆ allow_empty

◆ n_arcs

size_t n_arcs

Definition at line 37 of file rand-fst.h.

Referenced by fst::TestDeterminizeLattice(), and fst::TestDeterminizeLatticePruned().

◆ n_final

size_t n_final

Definition at line 38 of file rand-fst.h.

Referenced by fst::TestDeterminizeLattice(), and fst::TestDeterminizeLatticePruned().

◆ n_states

size_t n_states

Definition at line 36 of file rand-fst.h.

Referenced by fst::TestDeterminizeLattice(), and fst::TestDeterminizeLatticePruned().

◆ n_syms

size_t n_syms

Definition at line 35 of file rand-fst.h.

◆ weight_multiplier

float weight_multiplier

Definition at line 41 of file rand-fst.h.

Referenced by fst::TestDeterminizeLattice(), and fst::TestDeterminizeLatticePruned().


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