Go to the source code of this file.
 | 
| int  | main (int argc, char *argv[]) | 
|   | 
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char *  | 
          argv[]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 26 of file raw-nnet-concat.cc.
References ParseOptions::GetArg(), KALDI_LOG, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), kaldi::ReadKaldiObject(), ParseOptions::Register(), and kaldi::WriteKaldiObject().
   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");
    49     if (po.NumArgs() != 3) {
    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 ReadKaldiObject(const std::string &filename, Matrix< float > *m)
 
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
 
void WriteKaldiObject(const C &c, const std::string &filename, bool binary)