kaldi-holder.h File Reference
#include <algorithm>
#include "util/kaldi-io.h"
#include "util/text-utils.h"
#include "matrix/kaldi-vector.h"
#include "matrix/sparse-matrix.h"
#include "util/kaldi-holder-inl.h"
Include dependency graph for kaldi-holder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GenericHolder< SomeType >
 GenericHolder serves to document the requirements of the Holder interface; it's not intended to be used. More...
 
class  KaldiObjectHolder< KaldiType >
 KaldiObjectHolder works for Kaldi objects that have the "standard" Read and Write functions, and a copy constructor. More...
 
class  BasicHolder< BasicType >
 BasicHolder is valid for float, double, bool, and integer types. More...
 
class  BasicVectorHolder< BasicType >
 A Holder for a vector of basic types, e.g. More...
 
class  BasicVectorVectorHolder< BasicType >
 BasicVectorVectorHolder is a Holder for a vector of vector of a basic type, e.g. More...
 
class  BasicPairVectorHolder< BasicType >
 BasicPairVectorHolder is a Holder for a vector of pairs of a basic type, e.g. More...
 
class  SphinxMatrixHolder< kFeatDim >
 A class for reading/writing Sphinx format matrices. More...
 

Namespaces

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

Functions

template<class T >
bool ExtractObjectRange (const T &input, const std::string &range, T *output)
 This templated function exists so that we can write .scp files with 'object ranges' specified: the canonical example is a [first:last] range of rows of a matrix, or [first-row:last-row,first-column,last-column] of a matrix. More...
 
template<class Real >
bool ExtractObjectRange (const Matrix< Real > &input, const std::string &range, Matrix< Real > *output)
 The template is specialized with a version that actually does something, for types Matrix<float> and Matrix<double>. More...
 
template<class Real >
bool ExtractObjectRange (const Vector< Real > &input, const std::string &range, Vector< Real > *output)
 The template is specialized types Vector<float> and Vector<double>. More...
 
bool ExtractObjectRange (const GeneralMatrix &input, const std::string &range, GeneralMatrix *output)
 GeneralMatrix is always of type BaseFloat. More...
 
template<class Real >
bool ExtractObjectRange (const CompressedMatrix &input, const std::string &range, Matrix< Real > *output)
 CompressedMatrix is always of the type BaseFloat but it is more efficient to provide template as it uses CompressedMatrix's own conversion to Matrix<Real> More...
 
bool ExtractRangeSpecifier (const std::string &rxfilename_with_range, std::string *data_rxfilename, std::string *range)