Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 35 of file fstminimizeencoded.cc.
References ParseOptions::GetOptArg(), fst::MinimizeEncoded(), ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), fst::ReadFstKaldi(), ParseOptions::Register(), and fst::WriteFstKaldi().
37 using namespace kaldi;
42 "Minimizes FST after encoding [similar to fstminimize, but no weight-pushing]\n" 44 "Usage: fstminimizeencoded [in.fst [out.fst] ]\n";
48 po.Register(
"delta", &delta,
"Delta likelihood used for quantization of weights");
51 if (po.NumArgs() > 2) {
56 std::string fst_in_filename = po.GetOptArg(1),
57 fst_out_filename = po.GetOptArg(2);
67 }
catch(
const std::exception &e) {
68 std::cerr << e.what();
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
For an extended explanation of the framework of which grammar-fsts are a part, please see Support for...
void MinimizeEncoded(VectorFst< Arc > *fst, float delta=kDelta)
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
void WriteFstKaldi(std::ostream &os, bool binary, const VectorFst< Arc > &t)
void ReadFstKaldi(std::istream &is, bool binary, VectorFst< Arc > *fst)