Public Types | |
typedef CompactLatticeWeightTpl< Weight, IntType > | CompactWeight |
typedef ArcTpl< CompactWeight > | CompactArc |
typedef CompactArc::StateId | StateId |
Public Member Functions | |
CompactLatticePusher (MutableFst< CompactArc > *clat) | |
bool | Push () |
void | CheckForConflict (const CompactWeight &final, StateId state, int32 *shift) |
void | ComputeShifts () |
void | ApplyShifts () |
Static Public Member Functions | |
static void | GetString (const ExpandedFst< CompactArc > &clat, StateId state, size_t arc_idx, typename std::vector< IntType >::iterator begin, typename std::vector< IntType >::iterator end) |
Private Attributes | |
MutableFst< ArcTpl< CompactLatticeWeightTpl< Weight, IntType > > > * | clat_ |
std::vector< int32 > | shift_vec_ |
Definition at line 31 of file push-lattice.cc.
typedef ArcTpl<CompactWeight> CompactArc |
Definition at line 34 of file push-lattice.cc.
typedef CompactLatticeWeightTpl<Weight, IntType> CompactWeight |
Definition at line 33 of file push-lattice.cc.
typedef CompactArc::StateId StateId |
Definition at line 35 of file push-lattice.cc.
|
inline |
Definition at line 37 of file push-lattice.cc.
|
inline |
Definition at line 166 of file push-lattice.cc.
References CompactLatticePusher< Weight, IntType >::clat_, CompactLatticePusher< Weight, IntType >::GetString(), KALDI_ASSERT, CompactLatticePusher< Weight, IntType >::shift_vec_, and CompactLatticeWeightTpl< WeightType, IntType >::Zero().
Referenced by CompactLatticePusher< Weight, IntType >::Push().
|
inline |
Definition at line 89 of file push-lattice.cc.
References CompactLatticePusher< Weight, IntType >::clat_, CompactLatticePusher< Weight, IntType >::GetString(), KALDI_ASSERT, and CompactLatticeWeightTpl< WeightType, IntType >::Zero().
Referenced by CompactLatticePusher< Weight, IntType >::ComputeShifts().
|
inline |
Definition at line 132 of file push-lattice.cc.
References CompactLatticePusher< Weight, IntType >::CheckForConflict(), CompactLatticePusher< Weight, IntType >::clat_, KALDI_COMPILE_TIME_ASSERT, CompactLatticePusher< Weight, IntType >::shift_vec_, and CompactLatticeWeightTpl< WeightType, IntType >::Zero().
Referenced by CompactLatticePusher< Weight, IntType >::Push().
|
inlinestatic |
Definition at line 55 of file push-lattice.cc.
References KALDI_ASSERT, and CompactLatticeWeightTpl< WeightType, IntType >::Zero().
Referenced by CompactLatticePusher< Weight, IntType >::ApplyShifts(), and CompactLatticePusher< Weight, IntType >::CheckForConflict().
|
inline |
Definition at line 38 of file push-lattice.cc.
References CompactLatticePusher< Weight, IntType >::ApplyShifts(), CompactLatticePusher< Weight, IntType >::clat_, CompactLatticePusher< Weight, IntType >::ComputeShifts(), and KALDI_WARN.
Referenced by fst::PushCompactLatticeStrings().
|
private |
|
private |
Definition at line 206 of file push-lattice.cc.
Referenced by CompactLatticePusher< Weight, IntType >::ApplyShifts(), and CompactLatticePusher< Weight, IntType >::ComputeShifts().