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