25 int main(
int argc,
char *argv[]) {
27 using namespace kaldi;
31 "Write to standard output various properties of GMM model\n" 32 "This is for a single diagonal GMM, e.g. as used for a UBM.\n" 33 "Usage: gmm-global-info [options] <gmm>\n" 35 " gmm-global-info 1.dubm\n" 36 "See also: gmm-info, am-info\n";
47 std::string model_rxfilename = po.
GetArg(1);
52 std::cout <<
"number of gaussians " << gmm.
NumGauss() <<
'\n';
53 std::cout <<
"feature dimension " << gmm.
Dim() <<
'\n';
55 }
catch(
const std::exception &e) {
56 std::cerr << e.what() <<
'\n';
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
int32 Dim() const
Returns the dimensionality of the Gaussian mean vectors.
void PrintUsage(bool print_command_line=false)
Prints the usage documentation [provided in the constructor].
void ReadKaldiObject(const std::string &filename, Matrix< float > *m)
int main(int argc, char *argv[])
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.
std::string GetArg(int param) const
Returns one of the positional parameters; 1-based indexing for argc/argv compatibility.
int32 NumGauss() const
Returns the number of mixture components in the GMM.
int NumArgs() const
Number of positional parameters (c.f. argc-1).
Definition for Gaussian Mixture Model with diagonal covariances.