Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 24 of file ivector-extractor-est.cc.
References kaldi::g_num_threads, ParseOptions::GetArg(), IvectorExtractorStats::IvectorVarianceDiagnostic(), KALDI_LOG, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), kaldi::ReadKaldiObject(), ParseOptions::Register(), IvectorExtractorEstimationOptions::Register(), IvectorExtractorStats::Update(), and kaldi::WriteKaldiObject().
27 using namespace kaldi;
30 "Do model re-estimation of iVector extractor (this is\n" 31 "the update phase of a single pass of E-M)\n" 32 "Usage: ivector-extractor-est [options] <model-in> <stats-in> <model-out>\n";
38 po.Register(
"binary", &binary,
"Write output in binary mode");
40 "Number of threads used in update");
46 if (po.NumArgs() != 3) {
51 std::string model_rxfilename = po.GetArg(1),
52 stats_rxfilename = po.GetArg(2),
53 model_wxfilename = po.GetArg(3);
63 stats.
Update(update_opts, &extractor);
67 KALDI_LOG <<
"Updated model and wrote it to " 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...
void ReadKaldiObject(const std::string &filename, Matrix< float > *m)
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
void WriteKaldiObject(const C &c, const std::string &filename, bool binary)