26 int main(
int argc, 
char *argv[]) {
    28     using namespace kaldi;
    32         "Copy the i-vector extractor to a text file\n"    33         "Usage:  ivector-extractor-copy [options] <ivector-extractor-in> <ivector-extractor-out>\n"    35         " ivector-extractor-copy --binary=false 0.ie 0_txt.ie\n";
    40     po.
Register(
"binary", &binary, 
"Write output in binary mode");
    50     std::string ivector_extractor_rxfilename = po.
GetArg(1),
    51         ivector_extractor_wxfilename = po.
GetArg(2);
    59   } 
catch(
const std::exception &e) {
    60     std::cerr << e.what();
 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 Register(const std::string &name, bool *ptr, const std::string &doc)
 
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...
 
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). 
 
void WriteKaldiObject(const C &c, const std::string &filename, bool binary)