Go to the source code of this file.
 | 
|    | kaldi | 
|   | This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference: 
  | 
|   | 
|    | kaldi::nnet3 | 
|   | 
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char *  | 
          argv[]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 42 of file nnet3-merge-egs.cc.
References ExampleMerger::AcceptExample(), ExampleMergingConfig::ComputeDerived(), SequentialTableReader< Holder >::Done(), ExampleMerger::ExitStatus(), ExampleMerger::Finish(), ParseOptions::GetArg(), SequentialTableReader< Holder >::Next(), ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), ExampleMergingConfig::Register(), and SequentialTableReader< Holder >::Value().
   44     using namespace kaldi;
    47     typedef kaldi::int64 int64;
    50         "This copies nnet training examples from input to output, but while doing so it\n"    51         "merges many NnetExample objects into one, forming a minibatch consisting of a\n"    52         "single NnetExample.\n"    54         "Usage:  nnet3-merge-egs [options] <egs-rspecifier> <egs-wspecifier>\n"    56         "nnet3-merge-egs --minibatch-size=512 ark:1.egs ark:- | nnet3-train-simple ... \n"    57         "See also nnet3-copy-egs\n";
    66     if (po.NumArgs() != 2) {
    71     std::string examples_rspecifier = po.GetArg(1),
    72         examples_wspecifier = po.GetArg(2);
    81     for (; !example_reader.Done(); example_reader.Next()) {
    87     return merger.ExitStatus();
    88   } 
catch(
const std::exception &e) {
    89     std::cerr << e.what() << 
'\n';
 NnetExample is the input data and corresponding label (or labels) for one or more frames of input...
 
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
 
A templated class for writing objects to an archive or script file; see The Table concept...
 
This class is responsible for arranging examples in groups that have the same strucure (i...
 
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
 
A templated class for reading objects sequentially from an archive or script file; see The Table conc...
 
void Register(OptionsItf *po)