Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 25 of file fgmm-global-to-gmm.cc.
References DiagGmm::CopyFromFullGmm(), ParseOptions::GetArg(), KALDI_LOG, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), FullGmm::Read(), ParseOptions::Register(), Input::Stream(), and kaldi::WriteKaldiObject().
27 using namespace kaldi;
31 "Convert single full-covariance GMM to single diagonal-covariance GMM.\n" 32 "Usage: fgmm-global-to-gmm [options] 1.fgmm 1.gmm\n";
36 po.Register(
"binary", &binary,
"Write output in binary mode");
39 if (po.NumArgs() != 2) {
44 std::string fgmm_rxfilename = po.GetArg(1),
45 gmm_wxfilename = po.GetArg(2);
51 Input ki(fgmm_rxfilename, &binary_read);
52 fgmm.
Read(ki.Stream(), binary_read);
58 KALDI_LOG <<
"Written diagonal GMM to " << gmm_wxfilename;
59 }
catch(
const std::exception &e) {
60 std::cerr << e.what() <<
'\n';
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition for Gaussian Mixture Model with full covariances.
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
void Read(std::istream &is, bool binary)
void CopyFromFullGmm(const FullGmm &fullgmm)
Copies from given FullGmm.
Definition for Gaussian Mixture Model with diagonal covariances.
void WriteKaldiObject(const C &c, const std::string &filename, bool binary)