context-fst.cc File Reference
Include dependency graph for context-fst.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

void ComposeContext (const vector< int32 > &disambig_syms_in, int32 context_width, int32 central_position, VectorFst< StdArc > *ifst, VectorFst< StdArc > *ofst, vector< vector< int32 > > *ilabels_out, bool project_ifst)
 Used in the command-line tool fstcomposecontext. More...
 
void AddSubsequentialLoop (StdArc::Label subseq_symbol, MutableFst< StdArc > *fst)
 Modifies an FST so that it transuces the same paths, but the input side of the paths can all have the subsequential symbol '$' appended to them any number of times (we could easily specify the number of times, but accepting any number of repetitions is just more convenient). More...
 
void WriteILabelInfo (std::ostream &os, bool binary, const vector< vector< int32 > > &info)
 Utility function for writing ilabel-info vectors to disk. More...
 
void ReadILabelInfo (std::istream &is, bool binary, vector< vector< int32 > > *info)
 Utility function for reading ilabel-info vectors from disk. More...
 
SymbolTable * CreateILabelInfoSymbolTable (const vector< vector< int32 > > &info, const SymbolTable &phones_symtab, std::string separator, std::string initial_disambig)
 The following function is mainly of use for printing and debugging. More...