context-fst-test.cc File Reference
Include dependency graph for context-fst-test.cc:

Go to the source code of this file.

Namespaces

 fst
 For an extended explanation of the framework of which grammar-fsts are a part, please see Support for grammars and graphs with on-the-fly parts. (i.e.
 

Functions

template<class Arc >
static VectorFst< Arc > * GenAcceptorFromSequence (const vector< typename Arc::Label > &symbols, float cost)
 
template<class Arc >
static float CheckPhones (const VectorFst< Arc > &linear_fst, const vector< typename Arc::Label > &phone_ids, const vector< typename Arc::Label > &disambig_ids, const vector< typename Arc::Label > &phone_seq, const vector< vector< typename Arc::Label > > &ilabel_info, int N, int P)
 
template<class Arc >
static VectorFst< Arc > * GenRandPhoneSeq (vector< typename Arc::Label > &phone_syms, vector< typename Arc::Label > &disambig_syms, typename Arc::Label subsequential_symbol, int num_subseq_syms, float seq_prob, vector< typename Arc::Label > *phoneseq_out)
 
static void TestContextFst (bool verbose, bool use_matcher)
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 249 of file context-fst-test.cc.

References rnnlm::i, and fst::TestContextFst().

249  {
250 
251  for (int i = 0;i < 16;i++) {
252  bool verbose = (i < 4);
253  bool use_matcher = ( (i/4) % 2 == 0);
254  fst::TestContextFst(verbose, use_matcher);
255  }
256 }
static void TestContextFst(bool verbose, bool use_matcher)