56     using namespace kaldi;
    59         "This is a special-purpose program to be used in \"predictive SGMMs\".\n"    60         "It takes in an LDA+MLLT matrix, and the original \"full\" LDA matrix\n"    61         "as output by the --write-full-matrix option of est-lda; and it writes\n"    62         "out a \"full\" LDA+MLLT matrix formed by the LDA+MLLT matrix plus the\n"    63         "remaining rows of the \"full\" LDA matrix; and also writes out its inverse\n"    64         "Usage: get-full-lda-mat [options] <lda-mllt-rxfilename> <full-lda-rxfilename> "    65         "<full-lda-mllt-wxfilename> [<inv-full-lda-mllt-wxfilename>]\n"    66         "E.g.: get-full-lda-mat final.mat full.mat full_lda_mllt.mat full_lda_mllt_inv.mat\n";
    71     po.Register(
"binary", &binary, 
"Write in binary mode (only relevant if output is a wxfilename)");
    75     if (po.NumArgs() < 3 || po.NumArgs() > 4) {
    80     std::string lda_mllt_rxfilename = po.GetArg(1),
    81         full_lda_rxfilename = po.GetArg(2),
    82         full_lda_mllt_wxfilename = po.GetArg(3),
    83         inv_full_lda_mllt_wxfilename = po.GetOptArg(4);
    94     full_lda_mllt.Range(0, lda_mllt.
NumRows(),
    95                         0, lda_mllt.
NumCols()).CopyFromMat(lda_mllt);
    99     if (po.NumArgs() != 3) {
   100       full_lda_mllt.Invert();
   104   } 
catch(
const std::exception &e) {
   105     std::cerr << e.what();
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
 
MatrixIndexT NumCols() const
Returns number of columns (or zero for empty matrix). 
 
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...
 
#define KALDI_ASSERT(cond)
 
MatrixIndexT NumRows() const
Returns number of rows (or zero for empty matrix). 
 
void WriteKaldiObject(const C &c, const std::string &filename, bool binary)