37 VectorFst<Arc> *
fst = RandFst<StdArc>();
40 FstPrinter<Arc> fstprinter(*fst, NULL, NULL, NULL,
false,
true,
"\t");
41 fstprinter.Print(&std::cout,
"standard output");
44 VectorFst<Arc> fst_copy(*fst);
50 float delta_dontcare = 0.1;
58 FstPrinter<Arc> fstprinter(fst_copy, NULL, NULL, NULL,
false,
true,
"\t");
59 fstprinter.Print(&std::cout,
"standard output");
61 KALDI_LOG <<
"Min value is " << min.Value() <<
", max value is " << max.Value();
65 KALDI_ASSERT(std::abs(min.Value() - max.Value()) <= 1.2 * delta);
78 for (
int i = 0;
i < 25;
i++) {
fst::StdArc::StateId StateId
For an extended explanation of the framework of which grammar-fsts are a part, please see Support for...
bool IsStochasticFstInLog(const Fst< StdArc > &fst, float delta, StdArc::Weight *min_sum, StdArc::Weight *max_sum)
int Rand(struct RandomState *state)
fst::StdArc::Weight Weight
#define KALDI_ASSERT(cond)
void PushSpecial(VectorFst< StdArc > *fst, float delta)
int32 g_kaldi_verbose_level
This is set by util/parse-options.
static void TestPushSpecial()