Home | History | Annotate | Download | only in bin

Lines Matching defs:fst

20 // Topologically sorts an FST.
23 #include <fst/script/topsort.h>
26 namespace s = fst::script;
27 using fst::script::FstClass;
28 using fst::script::MutableFstClass;
30 string usage = "Topologically sorts an FST.\n\n Usage: ";
32 usage += " [in.fst [out.fst]]\n";
44 MutableFstClass *fst = MutableFstClass::Read(in_fname, true);
45 if (!fst) return 1;
47 bool acyclic = TopSort(fst);
49 LOG(WARNING) << argv[0] << ": Input FST is cyclic";
50 fst->Write(out_fname);