
Classes | |
| class | ComputationState |
| struct | Tuple |
| struct | TupleEqual |
| struct | TupleHash |
Public Types | |
| typedef CompactLatticeArc::StateId | StateId |
| typedef CompactLatticeArc::Label | Label |
| typedef unordered_map< Tuple, StateId, TupleHash, TupleEqual > | MapType |
Public Member Functions | |
| StateId | GetStateForTuple (const Tuple &tuple, bool add_to_queue) |
| void | ProcessFinal (Tuple tuple, StateId output_state) |
| void | ProcessQueueElement () |
| LatticePhoneAligner (const CompactLattice &lat, const TransitionModel &tmodel, const PhoneAlignLatticeOptions &opts, CompactLattice *lat_out) | |
| void | RemoveEpsilonsFromLattice () |
| bool | AlignLattice () |
Public Attributes | |
| CompactLattice | lat_ |
| const TransitionModel & | tmodel_ |
| const PhoneAlignLatticeOptions & | opts_ |
| CompactLattice * | lat_out_ |
| std::vector< std::pair< Tuple, StateId > > | queue_ |
| MapType | map_ |
| bool | error_ |
Definition at line 28 of file phone-align-lattice.cc.
| typedef CompactLatticeArc::Label Label |
Definition at line 31 of file phone-align-lattice.cc.
| typedef unordered_map<Tuple, StateId, TupleHash, TupleEqual> MapType |
Definition at line 148 of file phone-align-lattice.cc.
| typedef CompactLatticeArc::StateId StateId |
Definition at line 30 of file phone-align-lattice.cc.
|
inline |
Definition at line 247 of file phone-align-lattice.cc.
References fst::CreateSuperFinal(), and LatticePhoneAligner::lat_.
|
inline |
Definition at line 265 of file phone-align-lattice.cc.
References LatticePhoneAligner::error_, LatticePhoneAligner::GetStateForTuple(), KALDI_WARN, LatticePhoneAligner::lat_, LatticePhoneAligner::lat_out_, LatticePhoneAligner::opts_, LatticePhoneAligner::ProcessQueueElement(), LatticePhoneAligner::queue_, PhoneAlignLatticeOptions::remove_epsilon, and LatticePhoneAligner::RemoveEpsilonsFromLattice().
Referenced by kaldi::PhoneAlignLattice().
Definition at line 150 of file phone-align-lattice.cc.
References LatticePhoneAligner::lat_out_, LatticePhoneAligner::map_, and LatticePhoneAligner::queue_.
Referenced by LatticePhoneAligner::AlignLattice(), LatticePhoneAligner::ProcessFinal(), and LatticePhoneAligner::ProcessQueueElement().
Definition at line 163 of file phone-align-lattice.cc.
References LatticePhoneAligner::Tuple::comp_state, LatticePhoneAligner::error_, LatticePhoneAligner::ComputationState::FinalWeight(), LatticePhoneAligner::GetStateForTuple(), LatticePhoneAligner::ComputationState::IsEmpty(), KALDI_ASSERT, LatticePhoneAligner::lat_out_, LatticePhoneAligner::opts_, LatticePhoneAligner::ComputationState::OutputArcForce(), fst::Plus(), and LatticePhoneAligner::tmodel_.
Referenced by LatticePhoneAligner::ProcessQueueElement().
|
inline |
Definition at line 194 of file phone-align-lattice.cc.
References LatticePhoneAligner::ComputationState::Advance(), LatticePhoneAligner::Tuple::comp_state, LatticePhoneAligner::error_, LatticePhoneAligner::GetStateForTuple(), LatticePhoneAligner::Tuple::input_state, KALDI_ASSERT, LatticePhoneAligner::lat_, LatticePhoneAligner::lat_out_, CompactLatticeWeightTpl< WeightType, IntType >::One(), LatticePhoneAligner::opts_, LatticePhoneAligner::ProcessFinal(), LatticePhoneAligner::queue_, LatticePhoneAligner::tmodel_, and CompactLatticeWeightTpl< WeightType, IntType >::Zero().
Referenced by LatticePhoneAligner::AlignLattice().
|
inline |
Definition at line 261 of file phone-align-lattice.cc.
References LatticePhoneAligner::lat_out_.
Referenced by LatticePhoneAligner::AlignLattice().
| bool error_ |
Definition at line 292 of file phone-align-lattice.cc.
Referenced by LatticePhoneAligner::AlignLattice(), LatticePhoneAligner::ProcessFinal(), and LatticePhoneAligner::ProcessQueueElement().
| CompactLattice lat_ |
Definition at line 285 of file phone-align-lattice.cc.
Referenced by LatticePhoneAligner::AlignLattice(), LatticePhoneAligner::LatticePhoneAligner(), and LatticePhoneAligner::ProcessQueueElement().
| CompactLattice* lat_out_ |
Definition at line 288 of file phone-align-lattice.cc.
Referenced by LatticePhoneAligner::AlignLattice(), LatticePhoneAligner::GetStateForTuple(), LatticePhoneAligner::ProcessFinal(), LatticePhoneAligner::ProcessQueueElement(), and LatticePhoneAligner::RemoveEpsilonsFromLattice().
| MapType map_ |
Definition at line 291 of file phone-align-lattice.cc.
Referenced by LatticePhoneAligner::GetStateForTuple().
| const PhoneAlignLatticeOptions& opts_ |
Definition at line 287 of file phone-align-lattice.cc.
Referenced by LatticePhoneAligner::AlignLattice(), LatticePhoneAligner::ProcessFinal(), and LatticePhoneAligner::ProcessQueueElement().
Definition at line 290 of file phone-align-lattice.cc.
Referenced by LatticePhoneAligner::AlignLattice(), LatticePhoneAligner::GetStateForTuple(), and LatticePhoneAligner::ProcessQueueElement().
| const TransitionModel& tmodel_ |
Definition at line 286 of file phone-align-lattice.cc.
Referenced by LatticePhoneAligner::ProcessFinal(), and LatticePhoneAligner::ProcessQueueElement().