25 int main(
int argc,
char *argv[]) {
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");
44 std::string gmm_rxfilename = po.
GetArg(1),
45 fgmm_wxfilename = po.
GetArg(2);
51 Input ki(gmm_rxfilename, &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.
void PrintUsage(bool print_command_line=false)
Prints the usage documentation [provided in the constructor].
void Register(const std::string &name, bool *ptr, const std::string &doc)
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
int Read(int argc, const char *const *argv)
Parses the command line options and fills the ParseOptions-registered variables.
int main(int argc, char *argv[])
std::string GetArg(int param) const
Returns one of the positional parameters; 1-based indexing for argc/argv compatibility.
int NumArgs() const
Number of positional parameters (c.f. argc-1).
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)