24 int main(
int argc,
char *argv[]) {
25 using namespace kaldi;
30 "Usage: fmpe-sum-accs [options...] <accs-out> <stats-in1> <stats-in2> ... \n" 31 "E.g. fmpe-sum-accs 1.accs 1.1.accs 1.2.accs 1.3.accs 1.4.accs\n";
35 po.
Register(
"binary", &binary,
"If true, output fMPE stats in " 44 std::string stats_wxfilename = po.
GetArg(1);
48 std::string stats_rxfilename = po.
GetArg(arg);
50 Input ki(stats_rxfilename, &binary);
59 }
catch(
const std::exception &e) {
60 std::cerr << e.what();
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void PrintUsage(bool print_command_line=false)
Prints the usage documentation [provided in the constructor].
int main(int argc, char *argv[])
void Register(const std::string &name, bool *ptr, const std::string &doc)
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.
std::string GetArg(int param) const
Returns one of the positional parameters; 1-based indexing for argc/argv compatibility.
int NumArgs() const
Number of positional parameters (c.f. argc-1).
void WriteKaldiObject(const C &c, const std::string &filename, bool binary)
void Read(std::istream &is, bool binary, bool add=false)