This class is used to implement the function PruneSpecial. More...
#include <prune-special-inl.h>
Classes | |
struct | Task |
Public Types | |
typedef Arc::StateId | InputStateId |
typedef Arc::StateId | OutputStateId |
typedef Arc::Weight | Weight |
typedef Arc::Label | Label |
Public Member Functions | |
PruneSpecialClass (const Fst< Arc > &ifst, VectorFst< Arc > *ofst, Weight beam, size_t max_states) | |
bool | Done (const Task &task) |
OutputStateId | ProcessState (InputStateId istate, const Weight &weight) |
OutputStateId | GetOutputStateId (InputStateId istate, const Weight &weight) |
void | ProcessTask (const Task &task) |
Private Attributes | |
const Fst< Arc > & | ifst_ |
VectorFst< Arc > * | ofst_ |
Weight | beam_ |
size_t | max_states_ |
unordered_map< InputStateId, OutputStateId > | state_map_ |
std::priority_queue< Task > | queue_ |
Weight | best_weight_ |
This class is used to implement the function PruneSpecial.
Definition at line 32 of file prune-special-inl.h.
typedef Arc::StateId InputStateId |
Definition at line 34 of file prune-special-inl.h.
typedef Arc::Label Label |
Definition at line 37 of file prune-special-inl.h.
typedef Arc::StateId OutputStateId |
Definition at line 35 of file prune-special-inl.h.
typedef Arc::Weight Weight |
Definition at line 36 of file prune-special-inl.h.
|
inline |
Definition at line 39 of file prune-special-inl.h.
References PruneSpecialClass< Arc >::beam_, PruneSpecialClass< Arc >::Done(), PruneSpecialClass< Arc >::ifst_, KALDI_ASSERT, PruneSpecialClass< Arc >::ofst_, PruneSpecialClass< Arc >::ProcessState(), PruneSpecialClass< Arc >::ProcessTask(), and PruneSpecialClass< Arc >::queue_.
Definition at line 77 of file prune-special-inl.h.
References PruneSpecialClass< Arc >::beam_, PruneSpecialClass< Arc >::best_weight_, fst::Compare(), PruneSpecialClass< Arc >::max_states_, PruneSpecialClass< Arc >::ofst_, fst::Times(), and PruneSpecialClass< Arc >::Task::weight.
Referenced by PruneSpecialClass< Arc >::PruneSpecialClass().
|
inline |
Definition at line 119 of file prune-special-inl.h.
References PruneSpecialClass< Arc >::ProcessState(), and PruneSpecialClass< Arc >::state_map_.
Referenced by PruneSpecialClass< Arc >::ProcessTask().
|
inline |
Definition at line 92 of file prune-special-inl.h.
References fst::Compare(), PruneSpecialClass< Arc >::ifst_, PruneSpecialClass< Arc >::Task::istate, KALDI_ASSERT, PruneSpecialClass< Arc >::ofst_, PruneSpecialClass< Arc >::Task::ostate, PruneSpecialClass< Arc >::queue_, PruneSpecialClass< Arc >::state_map_, and fst::Times().
Referenced by PruneSpecialClass< Arc >::GetOutputStateId(), and PruneSpecialClass< Arc >::PruneSpecialClass().
|
inline |
Definition at line 129 of file prune-special-inl.h.
References PruneSpecialClass< Arc >::best_weight_, PruneSpecialClass< Arc >::GetOutputStateId(), PruneSpecialClass< Arc >::ifst_, PruneSpecialClass< Arc >::Task::istate, PruneSpecialClass< Arc >::ofst_, PruneSpecialClass< Arc >::Task::ostate, PruneSpecialClass< Arc >::Task::position, and PruneSpecialClass< Arc >::Task::weight.
Referenced by PruneSpecialClass< Arc >::PruneSpecialClass().
|
private |
Definition at line 150 of file prune-special-inl.h.
Referenced by PruneSpecialClass< Arc >::Done(), and PruneSpecialClass< Arc >::PruneSpecialClass().
|
private |
Definition at line 155 of file prune-special-inl.h.
Referenced by PruneSpecialClass< Arc >::Done(), and PruneSpecialClass< Arc >::ProcessTask().
|
private |
Definition at line 148 of file prune-special-inl.h.
Referenced by PruneSpecialClass< Arc >::ProcessState(), PruneSpecialClass< Arc >::ProcessTask(), and PruneSpecialClass< Arc >::PruneSpecialClass().
|
private |
Definition at line 151 of file prune-special-inl.h.
Referenced by PruneSpecialClass< Arc >::Done().
|
private |
Definition at line 149 of file prune-special-inl.h.
Referenced by PruneSpecialClass< Arc >::Done(), PruneSpecialClass< Arc >::ProcessState(), PruneSpecialClass< Arc >::ProcessTask(), and PruneSpecialClass< Arc >::PruneSpecialClass().
|
private |
Definition at line 154 of file prune-special-inl.h.
Referenced by PruneSpecialClass< Arc >::ProcessState(), and PruneSpecialClass< Arc >::PruneSpecialClass().
|
private |
Definition at line 153 of file prune-special-inl.h.
Referenced by PruneSpecialClass< Arc >::GetOutputStateId(), and PruneSpecialClass< Arc >::ProcessState().