#include <fst/fstlib.h>
#include <fst/fst-decl.h>
#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "fstext/fstext-lib.h"
#include "hmm/transition-model.h"
#include "lat/kaldi-lattice.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:
|
|
|
bool | ReadLexiconForWordAlign (std::istream &is, std::vector< std::vector< int32 > > *lexicon) |
| Read the lexicon in the special format required for word alignment. More...
|
|
bool | WordAlignLatticeLexicon (const CompactLattice &lat, const TransitionModel &tmodel, const WordAlignLatticeLexiconInfo &lexicon_info, const WordAlignLatticeLexiconOpts &opts, CompactLattice *lat_out) |
| Align lattice so that each arc has the transition-ids on it that correspond to the word that is on that arc. More...
|
|
void | TestWordAlignedLatticeLexicon (const CompactLattice &lat, const TransitionModel &tmodel, const std::vector< std::vector< int32 > > &lexicon, const CompactLattice &aligned_lat, bool allow_duplicate_paths) |
| This function is designed to crash if something went wrong with the word-alignment of the lattice. More...
|
|