35 VectorFst<Arc> *ifst = RandFst<StdArc>(opts);
40 FstPrinter<Arc> fstprinter(*ifst, NULL, NULL, NULL,
false,
true,
"\t");
41 fstprinter.Print(&std::cout,
"standard output");
42 std::cout << std::endl;
47 PruneSpecial<StdArc>(*ifst, &ofst1, beam);
49 FstPrinter<Arc> fstprinter(ofst1, NULL, NULL, NULL,
false,
true,
"\t");
50 fstprinter.Print(&std::cout,
"standard output");
51 std::cout << std::endl;
56 Prune(*ifst, &ofst2, beam);
58 FstPrinter<Arc> fstprinter(ofst2, NULL, NULL, NULL,
false,
true,
"\t");
59 fstprinter.Print(&std::cout,
"standard output");
60 std::cout << std::endl;
76 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...
static void TestPruneSpecial()
int Rand(struct RandomState *state)
fst::StdArc::Weight Weight
#define KALDI_ASSERT(cond)
int32 g_kaldi_verbose_level
This is set by util/parse-options.