28 int main(
int argc, 
char *argv[]) {
    29   using namespace kaldi;
    31     using namespace kaldi;
    35         "Copy decision tree (possibly changing binary/text format)\n"    36         "Usage:  copy-tree [--binary=false] <tree-in> <tree-out>\n";
    40     po.
Register(
"binary", &binary, 
"Write output in binary mode");
    49     std::string tree_in_filename = po.
GetArg(1),
    50         tree_out_filename = po.
GetArg(2);
    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...
 
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)
 
void ReadKaldiObject(const std::string &filename, Matrix< float > *m)
 
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)