Classes | |
class | DeterministicOnDemandFst< Arc > |
class DeterministicOnDemandFst is an "FST-like" base-class. More... | |
class | BackoffDeterministicOnDemandFst< Arc > |
This class wraps an Fst, representing a language model, using the interface for "BackoffDeterministicOnDemandFst". More... | |
class | ScaleDeterministicOnDemandFst |
Class ScaleDeterministicOnDemandFst takes another DeterministicOnDemandFst and scales the weights (like applying a language-model scale). More... | |
class | UnweightedNgramFst< Arc > |
The class UnweightedNgramFst is a DeterministicOnDemandFst whose states encode an n-gram history. More... | |
class | ComposeDeterministicOnDemandFst< Arc > |
class | CacheDeterministicOnDemandFst< Arc > |
class | LmExampleDeterministicOnDemandFst< Arc > |
This class is for didactic purposes, it does not really do anything. More... | |
Functions | |
template<class Arc > | |
void | ComposeDeterministicOnDemand (const Fst< Arc > &fst1, DeterministicOnDemandFst< Arc > *fst2, MutableFst< Arc > *fst_composed) |
template<class Arc > | |
void | ComposeDeterministicOnDemandInverse (const Fst< Arc > &fst1, DeterministicOnDemandFst< Arc > *fst2, MutableFst< Arc > *fst_composed) |
This function does '*fst_composed = Compose(Inverse(*fst2), fst1)' Note that the arguments are reversed; this is unfortunate but it's because the fst2 argument needs to be non-const and non-const arguments must follow const ones. More... | |
void ComposeDeterministicOnDemand | ( | const Fst< Arc > & | fst1, |
DeterministicOnDemandFst< Arc > * | fst2, | ||
MutableFst< Arc > * | fst_composed | ||
) |
Definition at line 318 of file deterministic-fst-inl.h.
References DeterministicOnDemandFst< Arc >::Final(), DeterministicOnDemandFst< Arc >::GetArc(), KALDI_ASSERT, DeterministicOnDemandFst< Arc >::Start(), and fst::Times().
Referenced by main().
void ComposeDeterministicOnDemandInverse | ( | const Fst< Arc > & | fst1, |
DeterministicOnDemandFst< Arc > * | fst2, | ||
MutableFst< Arc > * | fst_composed | ||
) |
This function does '*fst_composed = Compose(Inverse(*fst2), fst1)' Note that the arguments are reversed; this is unfortunate but it's because the fst2 argument needs to be non-const and non-const arguments must follow const ones.
This is the counterpart to ComposeDeterministicOnDemand, used for the case where the DeterministicOnDemandFst is on the left. The reason why we need to make the left-hand argument to compose the inverse of 'fst2' (i.e. with the input and output symbols swapped), is that the DeterministicOnDemandFst interface only supports lookup by ilabel (see its function GetArc). This does not call Connect().
Definition at line 408 of file deterministic-fst-inl.h.
References DeterministicOnDemandFst< Arc >::Final(), DeterministicOnDemandFst< Arc >::GetArc(), KALDI_ASSERT, DeterministicOnDemandFst< Arc >::Start(), kaldi::swap(), and fst::Times().
Referenced by TrainingGraphCompiler::CompileGraph(), TrainingGraphCompiler::CompileGraphs(), fst::ComposeContext(), fst::ComposeContextLeftBiphone(), and fst::TestContextFst().