24 int main(
int argc,
char *argv[]) {
26 using namespace kaldi;
31 "Print some text information about 'raw' nnet3 neural network, to\n" 34 "Usage: nnet3-info [options] <raw-nnet>\n" 37 "See also: nnet3-am-info\n";
48 std::string raw_nnet_rxfilename = po.
GetArg(1);
53 std::cout << nnet.
Info();
56 }
catch(
const std::exception &e) {
57 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 ReadKaldiObject(const std::string &filename, Matrix< float > *m)
std::string Info() const
returns some human-readable information about the network, mostly for debugging purposes.
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
int main(int argc, char *argv[])
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).