30 bool binary = (rand() % 2 == 0);
32 std::ostringstream os;
33 trans_model->
Write(os, binary);
36 std::istringstream is2(os.str());
37 trans_model2.
Read(is2, binary);
40 std::ostringstream os1, os2;
41 trans_model->
Write(os1,
false);
42 trans_model2.
Write(os2,
false);
52 for (
int i = 0;
i < 2;
i++)
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void Read(std::istream &is, bool binary)
bool Compatible(const TransitionModel &other) const
returns true if all the integer class members are identical (but does not compare the transition prob...
void Write(std::ostream &os, bool binary) const
#define KALDI_ASSERT(cond)
TransitionModel * GenRandTransitionModel(ContextDependency **ctx_dep_out)
void TestTransitionModel()