nnet-loss.cc File Reference
#include <sstream>
#include <iterator>
#include <algorithm>
#include <iomanip>
#include "nnet/nnet-loss.h"
#include "nnet/nnet-utils.h"
#include "cudamatrix/cu-math.h"
#include "hmm/posterior.h"
Include dependency graph for nnet-loss.cc:

Go to the source code of this file.


 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:


template<typename T >
void CountCorrectFramesWeighted (const CuArray< T > &hyp, const CuArray< T > &ref, const CuVectorBase< BaseFloat > &weights, Vector< double > *correct)
 Helper function of Xent::Eval, calculates number of matching elemente in 'hyp', 'ref' weighted by 'weights'. More...