25 #include "fst/fstlib.h" 29 int main(
int argc,
char *argv[]) {
31 using namespace kaldi;
36 "Determinizes in the log semiring\n" 38 "Usage: fstdeterminizelog [in.fst [out.fst] ]\n" 40 "See also fstdeterminizestar\n";
50 std::string fst_in_filename = po.
GetOptArg(1),
60 }
catch(
const std::exception &e) {
61 std::cerr << e.what();
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
int main(int argc, char *argv[])
For an extended explanation of the framework of which grammar-fsts are a part, please see Support for...
void PrintUsage(bool print_command_line=false)
Prints the usage documentation [provided in the constructor].
void DeterminizeInLog(VectorFst< StdArc > *fst)
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
int Read(int argc, const char *const *argv)
Parses the command line options and fills the ParseOptions-registered variables.
int NumArgs() const
Number of positional parameters (c.f. argc-1).
void WriteFstKaldi(std::ostream &os, bool binary, const VectorFst< Arc > &t)
void ReadFstKaldi(std::istream &is, bool binary, VectorFst< Arc > *fst)
std::string GetOptArg(int param) const