21 #ifndef KALDI_UTIL_CONST_INTEGER_SET_H_ 22 #define KALDI_UTIL_CONST_INTEGER_SET_H_ 47 void Init(
const std::vector<I> &input) {
53 void Init(
const std::set<I> &input) {
73 typedef typename std::vector<I>::const_iterator
iterator;
79 void Write(std::ostream &os,
bool binary)
const;
80 void Read(std::istream &is,
bool binary);
96 #endif // KALDI_UTIL_CONST_INTEGER_SET_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void CopySetToVector(const std::set< T > &s, std::vector< T > *v)
Copies the elements of a set to a vector.
ConstIntegerSet(const std::vector< I > &input)
void Init(const std::set< I > &input)
void SortAndUniq(std::vector< T > *vec)
Sorts and uniq's (removes duplicates) from a vector.
ConstIntegerSet(const ConstIntegerSet< I > &other)
std::vector< I > slow_set_
void Write(std::ostream &os, bool binary) const
std::vector< bool > quick_set_
void Read(std::istream &is, bool binary)
void Init(const std::vector< I > &input)
ConstIntegerSet(const std::set< I > &input)
std::vector< I >::const_iterator iterator