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 nnet3-am-info.cc.
References ParseOptions::GetArg(), AmNnetSimple::Info(), ParseOptions::NumArgs(), ParseOptions::PrintUsage(), AmNnetSimple::Read(), ParseOptions::Read(), TransitionModel::Read(), and Input::Stream().
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";
44 if (po.NumArgs() != 1) {
49 std::string nnet_rxfilename = po.GetArg(1);
55 Input ki(nnet_rxfilename, &binary);
56 trans_model.
Read(ki.Stream(), binary);
57 am_nnet.
Read(ki.Stream(), 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 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)