#include <algorithm>
#include <utility>
#include <vector>
#include "util/stl-utils.h"
Go to the source code of this file.
|
| kaldi |
| This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
|
|
|
template<class T > |
int32 | LevenshteinEditDistance (const std::vector< T > &a, const std::vector< T > &b) |
|
template<class T > |
int32 | LevenshteinEditDistance (const std::vector< T > &ref, const std::vector< T > &hyp, int32 *ins, int32 *del, int32 *sub) |
|
template<class T > |
int32 | LevenshteinAlignment (const std::vector< T > &a, const std::vector< T > &b, T eps_symbol, std::vector< std::pair< T, T > > *output) |
|