Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 27 of file nnet3-discriminative-merge-egs.cc.
References DiscriminativeExampleMerger::AcceptExample(), ExampleMergingConfig::ComputeDerived(), SequentialTableReader< Holder >::Done(), DiscriminativeExampleMerger::ExitStatus(), DiscriminativeExampleMerger::Finish(), ParseOptions::GetArg(), SequentialTableReader< Holder >::Next(), ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), ExampleMergingConfig::Register(), and SequentialTableReader< Holder >::Value().
29 using namespace kaldi;
32 typedef kaldi::int64 int64;
35 "This copies nnet3 discriminative training examples from input to output, merging them\n" 36 "into composite examples. The --minibatch-size option controls how many egs\n" 37 "are merged into a single output eg.\n" 39 "Usage: nnet3-discriminative-egs [options] <egs-rspecifier> <egs-wspecifier>\n" 41 "nnet3-discriminative-merge-egs --minibatch-size=128 ark:1.degs ark:- | nnet3-discriminative-train ... \n" 42 "See also nnet3-discriminative-copy-egs\n";
47 merging_config.Register(&po);
51 if (po.NumArgs() != 2) {
56 std::string examples_rspecifier = po.GetArg(1),
57 examples_wspecifier = po.GetArg(2);
62 merging_config.ComputeDerived();
64 for (; !example_reader.Done(); example_reader.Next()) {
70 return merger.ExitStatus();
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...
This class is responsible for arranging examples in groups that have the same strucure (i...
A templated class for writing objects to an archive or script file; see The Table concept...
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...
NnetDiscriminativeExample is like NnetExample, but specialized for sequence training.