23 int main(
int argc,
char *argv[]) {
25 using namespace kaldi;
29 "Sum stats obtained with gmm-acc-mllt.\n" 30 "Usage: sum-mllt-accs [options] <stats-out> <stats-in1> <stats-in2> ...\n";
34 po.
Register(
"binary", &binary,
"Write accumulators in binary mode.");
43 std::string stats_out_filename = po.
GetArg(1);
46 bool binary_in, add =
true;
48 mllt_accs.
Read(ki.Stream(), binary_in, add);
51 Output ko(stats_out_filename, binary);
54 }
catch(
const std::exception &e) {
55 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].
void Read(std::istream &is, bool binary, bool add=false)
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.
int main(int argc, char *argv[])
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 Write(std::ostream &os, bool binary) const
A class for estimating Maximum Likelihood Linear Transform, also known as global Semi-tied Covariance...