|
fst::VectorFst< fst::StdArc > * | GetHmmAsFsa (std::vector< int32 > context_window, const ContextDependencyInterface &ctx_dep, const TransitionModel &trans_model, const HTransducerConfig &config, HmmCacheType *cache=NULL) |
| Called by GetHTransducer() and probably will not need to be called directly; it creates and returns the FST corresponding to the phone. More...
|
|
fst::VectorFst< fst::StdArc > * | GetHmmAsFsaSimple (std::vector< int32 > context_window, const ContextDependencyInterface &ctx_dep, const TransitionModel &trans_model, BaseFloat prob_scale) |
| Included mainly as a form of documentation, not used in any other code currently. More...
|
|
fst::VectorFst< fst::StdArc > * | GetHTransducer (const std::vector< std::vector< int32 > > &ilabel_info, const ContextDependencyInterface &ctx_dep, const TransitionModel &trans_model, const HTransducerConfig &config, std::vector< int32 > *disambig_syms_left) |
| Returns the H tranducer; result owned by caller. More...
|
|
void | GetIlabelMapping (const std::vector< std::vector< int32 > > &ilabel_info_old, const ContextDependencyInterface &ctx_dep, const TransitionModel &trans_model, std::vector< int32 > *old2new_map) |
| GetIlabelMapping produces a mapping that's similar to HTK's logical-to-physical model mapping (i.e. More...
|
|
void | AddSelfLoops (const TransitionModel &trans_model, const std::vector< int32 > &disambig_syms, BaseFloat self_loop_scale, bool reorder, bool check_no_self_loops, fst::VectorFst< fst::StdArc > *fst) |
| For context, see AddSelfLoops(). More...
|
|
void | AddTransitionProbs (const TransitionModel &trans_model, const std::vector< int32 > &disambig_syms, BaseFloat transition_scale, BaseFloat self_loop_scale, fst::VectorFst< fst::StdArc > *fst) |
| Adds transition-probs, with the supplied scales (see Scaling of transition and acoustic probabilities), to the graph. More...
|
|
void | AddTransitionProbs (const TransitionModel &trans_model, BaseFloat transition_scale, BaseFloat self_loop_scale, Lattice *lat) |
| This is as AddSelfLoops(), but operates on a Lattice, where it affects the graph part of the weight (the first element of the pair). More...
|
|
fst::VectorFst< fst::StdArc > * | GetPdfToTransitionIdTransducer (const TransitionModel &trans_model) |
| Returns a transducer from pdfs plus one (input) to transition-ids (output). More...
|
|
void | ConvertTransitionIdsToPdfs (const TransitionModel &trans_model, const std::vector< int32 > &disambig_syms, fst::VectorFst< fst::StdArc > *fst) |
| Converts all transition-ids in the FST to pdfs plus one. More...
|
|
bool | SplitToPhones (const TransitionModel &trans_model, const std::vector< int32 > &alignment, std::vector< std::vector< int32 > > *split_alignment) |
| SplitToPhones splits up the TransitionIds in "alignment" into their individual phones (one vector per instance of a phone). More...
|
|
bool | ConvertAlignment (const TransitionModel &old_trans_model, const TransitionModel &new_trans_model, const ContextDependencyInterface &new_ctx_dep, const std::vector< int32 > &old_alignment, int32 subsample_factor, bool repeat_frames, bool reorder, const std::vector< int32 > *phone_map, std::vector< int32 > *new_alignment) |
| ConvertAlignment converts an alignment that was created using one model, to another model. More...
|
|
bool | ConvertPhnxToProns (const std::vector< int32 > &phnx, const std::vector< int32 > &words, int32 word_start_sym, int32 word_end_sym, std::vector< std::vector< int32 > > *prons) |
|
void | GetRandomAlignmentForPhone (const ContextDependencyInterface &ctx_dep, const TransitionModel &trans_model, const std::vector< int32 > &phone_window, std::vector< int32 > *alignment) |
|
void | ChangeReorderingOfAlignment (const TransitionModel &trans_model, std::vector< int32 > *alignment) |
|
void | GetPdfToPhonesMap (const TransitionModel &trans_model, std::vector< std::set< int32 > > *pdf2phones) |
|