25 int main(
int argc,
char *argv[]) {
27 using namespace kaldi;
31 "Write to standard output various properties of GMM-based model\n" 32 "Usage: gmm-info [options] <model-in>\n" 35 "See also: gmm-global-info, am-info\n";
46 std::string model_in_filename = po.
GetArg(1);
52 Input ki(model_in_filename, &binary_read);
57 std::cout <<
"number of phones " << trans_model.
GetPhones().size() <<
'\n';
58 std::cout <<
"number of pdfs " << trans_model.
NumPdfs() <<
'\n';
61 std::cout <<
"number of transition-states " 63 std::cout <<
"feature dimension " << am_gmm.
Dim() <<
'\n';
64 std::cout <<
"number of gaussians " << am_gmm.
NumGauss() <<
'\n';
66 }
catch(
const std::exception &e) {
67 std::cerr << e.what() <<
'\n';
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
const std::vector< int32 > & GetPhones() const
Returns a sorted, unique list of phones.
void PrintUsage(bool print_command_line=false)
Prints the usage documentation [provided in the constructor].
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
int32 NumTransitionIds() const
Returns the total number of transition-ids (note, these are one-based).
void Read(std::istream &is, bool binary)
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.
int main(int argc, char *argv[])
int NumArgs() const
Number of positional parameters (c.f. argc-1).
void Read(std::istream &in_stream, bool binary)
int32 NumTransitionStates() const
Returns the total number of transition-states (note, these are one-based).