33   for (
size_t i = 0; 
i < eg.
io.size(); 
i++)
    34     if (eg.
io[
i].name.find(
"output") != std::string::npos)
    35       return eg.
io[
i].indexes.size();
    42 int main(
int argc, 
char *argv[]) {
    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";
    71     std::string examples_rspecifier = po.
GetArg(1),
    72         examples_wspecifier = po.
GetArg(2);
    81     for (; !example_reader.
Done(); example_reader.
Next()) {
    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...
 
void AcceptExample(NnetExample *a)
 
void PrintUsage(bool print_command_line=false)
Prints the usage documentation [provided in the constructor]. 
 
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...
 
int main(int argc, char *argv[])
 
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...
 
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. 
 
void Register(OptionsItf *po)
 
int NumArgs() const
Number of positional parameters (c.f. argc-1). 
 
int32 NumOutputIndexes(const NnetExample &eg)
 
std::vector< NnetIo > io
"io" contains the input and output.