29     using namespace kaldi;
    34         "Add mixture-components to a neural net (comparable to mixtures in a Gaussian\n"    35         "mixture model).  Number of mixture components must be greater than the number\n"    38         "Usage:  nnet-am-mixup [options] <nnet-in> <nnet-out>\n"    40         " nnet-am-mixup --power=0.3 --num-mixtures=5000 1.mdl 2.mdl\n";
    43     bool binary_write = 
true;
    50     if (po.NumArgs() != 2) {
    55     std::string nnet_rxfilename = po.GetArg(1),
    56         nnet_wxfilename = po.GetArg(2);
    62       Input ki(nnet_rxfilename, &binary);
    63       trans_model.
Read(ki.Stream(), binary);
    64       am_nnet.
Read(ki.Stream(), binary);
    70       Output ko(nnet_wxfilename, binary_write);
    71       trans_model.
Write(ko.Stream(), binary_write);
    72       am_nnet.
Write(ko.Stream(), binary_write);
    74     KALDI_LOG << 
"Mixed up neural net from " << nnet_rxfilename
    75               << 
" and wrote it to " << nnet_wxfilename;
    77   } 
catch(
const std::exception &e) {
    78     std::cerr << e.what() << 
'\n';
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
 
void Read(std::istream &is, bool binary)
 
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
 
void Register(OptionsItf *opts)
 
void Read(std::istream &is, bool binary)
 
void Write(std::ostream &os, bool binary) const
 
void Write(std::ostream &os, bool binary) const
 
const Nnet & GetNnet() const
 
void MixupNnet(const NnetMixupConfig &mixup_config, Nnet *nnet)
This function works as follows.