25 int main(
int argc, 
char *argv[]) {
    27     using namespace kaldi;
    31         "Sum stats obtained with acc-lda.\n"    32         "Usage: sum-lda-accs [options] <stats-out> <stats-in1> <stats-in2> ...\n";
    36     po.
Register(
"binary", &binary, 
"Write accumulators in binary mode.");
    45     std::string stats_out_filename = po.
GetArg(1);
    48       bool binary_in, add = 
true;
    50       lda.
Read(ki.Stream(), binary_in, add);
    53     Output ko(stats_out_filename, binary);
    56   } 
catch(
const std::exception &e) {
    57     std::cerr << e.what();
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
 
Class for computing linear discriminant analysis (LDA) transform. 
 
void PrintUsage(bool print_command_line=false)
Prints the usage documentation [provided in the constructor]. 
 
void Write(std::ostream &out_stream, bool binary) const
 
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...
 
void Read(std::istream &in_stream, bool binary, bool add)
 
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).