26 int main(
int argc, 
char *argv[]) {
    28     using namespace kaldi;
    33         "Concatenate two 'raw' neural nets, e.g. as output by nnet-init or\n"    36         "Usage:  raw-nnet-concat [options] <raw-nnet-in1> <raw-nnet-in2> <raw-nnet-out>\n"    38         " raw-nnet-concat nnet1 nnet2 nnet_concat\n";
    40     bool binary_write = 
true;
    44     po.
Register(
"binary", &binary_write, 
"Write output in binary mode");
    54     std::string raw_nnet1_rxfilename = po.
GetArg(1),
    55         raw_nnet2_rxfilename = po.
GetArg(2),
    56         raw_nnet_wxfilename = po.
GetArg(3);
    63     Nnet nnet_concat(nnet1, nnet2); 
    67     KALDI_LOG << 
"Concatenated neural nets from "    68               << raw_nnet1_rxfilename << 
" and " << raw_nnet2_rxfilename
    69               << 
" and wrote to " << raw_nnet_wxfilename;
    71   } 
catch(
const std::exception &e) {
    72     std::cerr << e.what() << 
'\n';
 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)