FST  openfst-1.7.1
OpenFst Library
fstmap.cc
Go to the documentation of this file.
1 // See www.openfst.org for extensive documentation on this weighted
2 // finite-state transducer library.
3 
4 #include <fst/flags.h>
5 #include <fst/weight.h>
6 
7 DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta");
8 DEFINE_string(map_type, "identity",
9  "Map operation, one of: \"arc_sum\", \"arc_unique\", "
10  "\"float_power\" (--power)\", \"identity\", \"input_epsilon\", "
11  "\"invert\", \"output_epsilon\", \"plus (--weight)\", "
12  "\"quantize (--delta)\", \"rmweight\", \"superfinal\", "
13  "\"power (--power)\", \"times (--weight)\", \"to_log\", "
14  "\"to_log64\", \"to_std\"");
15 DEFINE_double(power, 1.0, "Power parameter");
16 DEFINE_string(weight, "", "Weight parameter");
17 
18 int fstmap_main(int argc, char **argv);
19 
20 int main(int argc, char **argv) { return fstmap_main(argc, argv); }
int fstmap_main(int argc, char **argv)
Definition: fstmap-main.cc:21
DEFINE_string(map_type,"identity","Map operation, one of: \"arc_sum\", \"arc_unique\", ""\"float_power\" (--power)\", \"identity\", \"input_epsilon\", ""\"invert\", \"output_epsilon\", \"plus (--weight)\", ""\"quantize (--delta)\", \"rmweight\", \"superfinal\", ""\"power (--power)\", \"times (--weight)\", \"to_log\", ""\"to_log64\", \"to_std\"")
DEFINE_double(delta, fst::kDelta,"Comparison/quantization delta")
int main(int argc, char **argv)
Definition: fstmap.cc:20
constexpr float kDelta
Definition: weight.h:109