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 sum-lda-accs.cc.
References ParseOptions::GetArg(), rnnlm::i, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), LdaEstimate::Read(), ParseOptions::Read(), ParseOptions::Register(), Output::Stream(), and LdaEstimate::Write().
   27     using namespace kaldi;
    31         "Sum stats obtained with acc-lda.\n"    32         "Usage: sum-lda-accs [options] <stats-out> <stats-in1> <stats-in2> ...\n";
    36     po.Register(
"binary", &binary, 
"Write accumulators in binary mode.");
    39     if (po.NumArgs() < 2) {
    45     std::string stats_out_filename = po.GetArg(1);
    47     for (int32 
i = 2; 
i <= po.NumArgs(); 
i++) {
    48       bool binary_in, add = 
true;
    49       Input ki(po.GetArg(
i), &binary_in);
    50       lda.
Read(ki.Stream(), binary_in, add);
    53     Output ko(stats_out_filename, binary);
    54     lda.
Write(ko.Stream(), binary);
    56   } 
catch(
const std::exception &e) {
    57     std::cerr << e.what();
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
 
Class for computing linear discriminant analysis (LDA) transform. 
 
void Write(std::ostream &out_stream, bool binary) const
 
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
 
void Read(std::istream &in_stream, bool binary, bool add)