FST  openfst-1.7.9
OpenFst Library
fstequivalent.cc
Go to the documentation of this file.
1 #include <limits>
2 #include <random>
3 
4 #include <fst/flags.h>
5 #include <fst/weight.h>
6 
7 DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta");
8 DEFINE_bool(random, false,
9  "Test equivalence by randomly selecting paths in the input FSTs");
10 DEFINE_int32(max_length, std::numeric_limits<int32>::max(),
11  "Maximum path length");
12 DEFINE_int32(npath, 1, "Number of paths to generate");
13 DEFINE_uint64(seed, std::random_device()(), "Random seed");
14 DEFINE_string(select, "uniform",
15  "Selection type: one of "
16  " \"uniform\", \"log_prob\" (when appropriate),"
17  " \"fast_log_prob\" (when appropriate)");
18 
19 int fstequivalent_main(int argc, char **argv);
20 
21 int main(int argc, char **argv) { return fstequivalent_main(argc, argv); }
DEFINE_uint64(seed, std::random_device()(),"Random seed")
DEFINE_double(delta, fst::kDelta,"Comparison/quantization delta")
int fstequivalent_main(int argc, char **argv)
DEFINE_int32(max_length, std::numeric_limits< int32 >::max(),"Maximum path length")
DEFINE_string(select,"uniform","Selection type: one of "" \"uniform\", \"log_prob\" (when appropriate),"" \"fast_log_prob\" (when appropriate)")
int main(int argc, char **argv)
constexpr float kDelta
Definition: weight.h:110
DEFINE_bool(random, false,"Test equivalence by randomly selecting paths in the input FSTs")