Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 23 of file sum-mllt-accs.cc.
References ParseOptions::GetArg(), rnnlm::i, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), MlltAccs::Read(), ParseOptions::Read(), ParseOptions::Register(), Output::Stream(), and MlltAccs::Write().
25 using namespace kaldi;
29 "Sum stats obtained with gmm-acc-mllt.\n" 30 "Usage: sum-mllt-accs [options] <stats-out> <stats-in1> <stats-in2> ...\n";
34 po.Register(
"binary", &binary,
"Write accumulators in binary mode.");
37 if (po.NumArgs() < 2) {
43 std::string stats_out_filename = po.GetArg(1);
45 for (int32
i = 2;
i <= po.NumArgs();
i++) {
46 bool binary_in, add =
true;
47 Input ki(po.GetArg(
i), &binary_in);
48 mllt_accs.
Read(ki.Stream(), binary_in, add);
51 Output ko(stats_out_filename, binary);
52 mllt_accs.
Write(ko.Stream(), binary);
54 }
catch(
const std::exception &e) {
55 std::cerr << e.what();
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void Read(std::istream &is, bool binary, bool add=false)
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
void Write(std::ostream &os, bool binary) const
A class for estimating Maximum Likelihood Linear Transform, also known as global Semi-tied Covariance...