25 int main(
int argc,
char *argv[]) {
27 using namespace kaldi;
32 "Print some text information about an nnet3 neural network, to\n" 35 "Usage: nnet3-am-info [options] <nnet>\n" 37 " nnet3-am-info 0.mdl\n" 38 "See also: nnet3-am-info\n";
49 std::string nnet_rxfilename = po.
GetArg(1);
55 Input ki(nnet_rxfilename, &binary);
59 std::cout << am_nnet.
Info();
62 }
catch(
const std::exception &e) {
63 std::cerr << e.what() <<
'\n';
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void PrintUsage(bool print_command_line=false)
Prints the usage documentation [provided in the constructor].
void Read(std::istream &is, bool binary)
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
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 NumArgs() const
Number of positional parameters (c.f. argc-1).
int main(int argc, char *argv[])