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-info.cc.
References FullGmm::Dim(), ParseOptions::GetArg(), ParseOptions::NumArgs(), FullGmm::NumGauss(), ParseOptions::PrintUsage(), ParseOptions::Read(), and kaldi::ReadKaldiObject().
27 using namespace kaldi;
31 "Write to standard output various properties of full-covariance GMM model\n" 32 "This is for a single mixture of Gaussians, e.g. as used for a UBM.\n" 33 "Usage: fgmm-global-info [options] <gmm>\n" 35 " fgmm-global-info 1.ubm\n";
41 if (po.NumArgs() != 1) {
46 std::string model_rxfilename = po.GetArg(1);
51 std::cout <<
"number of gaussians " << gmm.
NumGauss() <<
'\n';
52 std::cout <<
"feature dimension " << gmm.
Dim() <<
'\n';
54 }
catch(
const std::exception &e) {
55 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.
Definition for Gaussian Mixture Model with full covariances.
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...
int32 NumGauss() const
Returns the number of mixture components in the GMM.