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 gmm-global-to-fgmm.cc.
References FullGmm::CopyFromDiagGmm(), ParseOptions::GetArg(), KALDI_LOG, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), DiagGmm::Read(), ParseOptions::Register(), Input::Stream(), and kaldi::WriteKaldiObject().
27 using namespace kaldi;
31 "Convert single diagonal-covariance GMM to single full-covariance GMM.\n" 32 "Usage: gmm-global-to-fgmm [options] 1.gmm 1.fgmm\n";
36 po.Register(
"binary", &binary,
"Write output in binary mode");
39 if (po.NumArgs() != 2) {
44 std::string gmm_rxfilename = po.GetArg(1),
45 fgmm_wxfilename = po.GetArg(2);
51 Input ki(gmm_rxfilename, &binary_read);
52 gmm.
Read(ki.Stream(), binary_read);
58 KALDI_LOG <<
"Written full GMM to " << fgmm_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 &in, bool binary)
void CopyFromDiagGmm(const DiagGmm &diaggmm)
Copies from given DiagGmm.
Definition for Gaussian Mixture Model with diagonal covariances.
void WriteKaldiObject(const C &c, const std::string &filename, bool binary)