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 fmpe-est.cc.
References FmpeStats::DoChecks(), ParseOptions::GetArg(), KALDI_LOG, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), kaldi::ReadKaldiObject(), ParseOptions::Register(), FmpeUpdateOptions::Register(), Fmpe::Update(), and kaldi::WriteKaldiObject().
25 using namespace kaldi;
28 "Do one iteration of learning (modified gradient descent)\n" 30 "Usage: fmpe-est [options...] <fmpe-in> <stats-in> <fmpe-out>\n" 31 "E.g. fmpe-est 1.fmpe 1.accs 2.fmpe\n";
36 po.
Register(
"binary", &binary,
"If true, output fMPE object in " 41 if (po.NumArgs() != 3) {
46 std::string fmpe_rxfilename = po.GetArg(1),
47 stats_rxfilename = po.GetArg(2),
48 fmpe_wxfilename = po.GetArg(3);
60 KALDI_LOG <<
"Updated fMPE object and wrote to " 63 }
catch(
const std::exception &e) {
64 std::cerr << e.what();
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
BaseFloat Update(const FmpeUpdateOptions &config, const FmpeStats &stats)
void Register(OptionsItf *opts)
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)