#include <determinize-star-inl.h>
Classes | |
struct | Element |
class | EpsilonClosure |
class | PairComparator |
class | SubsetEqual |
class | SubsetEqualStates |
class | SubsetKey |
struct | TempArc |
Public Member Functions | |
void | Output (MutableFst< GallicArc< Arc > > *ofst, bool destroy=true) |
void | Output (MutableFst< Arc > *ofst, bool destroy=true) |
DeterminizerStar (const Fst< Arc > &ifst, float delta=kDelta, int max_states=-1, bool allow_partial=false) | |
void | Determinize (bool *debug_ptr) |
bool | IsPartial () |
void | FreeMostMemory () |
~DeterminizerStar () | |
Private Types | |
typedef F::Arc | Arc |
typedef Arc::Label | Label |
typedef Arc::Weight | Weight |
typedef Arc::StateId | InputStateId |
typedef Arc::StateId | OutputStateId |
typedef Arc::Label | StringId |
typedef StringRepository< Label, StringId > | StringRepositoryType |
typedef unordered_map< const std::vector< Element > *, OutputStateId, SubsetKey, SubsetEqual > | SubsetHash |
Private Member Functions | |
void | ProcessFinal (const std::vector< Element > &closed_subset, OutputStateId state) |
void | ProcessTransition (OutputStateId state, Label ilabel, std::vector< Element > *subset) |
void | ProcessTransitions (const std::vector< Element > &closed_subset, OutputStateId state) |
OutputStateId | SubsetToStateId (const std::vector< Element > &subset) |
void | ProcessSubset (const std::pair< std::vector< Element > *, OutputStateId > &pair) |
void | Debug () |
KALDI_DISALLOW_COPY_AND_ASSIGN (DeterminizerStar) | |
Private Attributes | |
std::deque< std::pair< std::vector< Element > *, OutputStateId > > | Q_ |
std::vector< std::vector< TempArc > > | output_arcs_ |
const Fst< Arc > * | ifst_ |
float | delta_ |
int | max_states_ |
bool | determinized_ |
bool | allow_partial_ |
bool | is_partial_ |
SubsetKey | hasher_ |
SubsetEqual | equal_ |
SubsetHash | hash_ |
StringRepository< Label, StringId > | repository_ |
EpsilonClosure | epsilon_closure_ |
Definition at line 159 of file determinize-star-inl.h.
|
private |
Definition at line 160 of file determinize-star-inl.h.
|
private |
Definition at line 247 of file determinize-star-inl.h.
|
private |
Definition at line 245 of file determinize-star-inl.h.
|
private |
Definition at line 248 of file determinize-star-inl.h.
|
private |
Definition at line 249 of file determinize-star-inl.h.
|
private |
Definition at line 250 of file determinize-star-inl.h.
|
private |
Definition at line 344 of file determinize-star-inl.h.
|
private |
Definition at line 246 of file determinize-star-inl.h.
|
inline |
Definition at line 176 of file determinize-star-inl.h.
|
inline |
Definition at line 241 of file determinize-star-inl.h.
|
private |
Definition at line 1068 of file determinize-star-inl.h.
References rnnlm::i, rnnlm::j, KALDI_ASSERT, KALDI_ERR, KALDI_WARN, and kaldi::swap().
|
inline |
Definition at line 187 of file determinize-star-inl.h.
References KALDI_ERR, KALDI_WARN, DeterminizerStar< F >::Element::state, DeterminizerStar< F >::Element::string, and DeterminizerStar< F >::Element::weight.
Referenced by fst::DeterminizeStar().
|
inline |
Definition at line 229 of file determinize-star-inl.h.
|
inline |
|
private |
Definition at line 862 of file determinize-star-inl.h.
References rnnlm::i, DeterminizerStar< F >::TempArc::ilabel, DeterminizerStar< F >::TempArc::nextstate, DeterminizerStar< F >::TempArc::ostring, and DeterminizerStar< F >::TempArc::weight.
Referenced by fst::DeterminizeStar().
Definition at line 912 of file determinize-star-inl.h.
References rnnlm::i, DeterminizerStar< F >::TempArc::ilabel, DeterminizerStar< F >::TempArc::nextstate, DeterminizerStar< F >::TempArc::ostring, DeterminizerStar< F >::ProcessTransition(), and DeterminizerStar< F >::TempArc::weight.
|
inlineprivate |
Definition at line 435 of file determinize-star-inl.h.
References DeterminizerStar< F >::TempArc::ilabel, KALDI_ERR, DeterminizerStar< F >::TempArc::nextstate, DeterminizerStar< F >::TempArc::ostring, fst::Plus(), DeterminizerStar< F >::Element::state, DeterminizerStar< F >::Element::string, fst::Times(), DeterminizerStar< F >::Element::weight, and DeterminizerStar< F >::TempArc::weight.
|
inlineprivate |
Definition at line 588 of file determinize-star-inl.h.
References StringRepository< Label, StringId >::KALDI_DISALLOW_COPY_AND_ASSIGN().
|
private |
Definition at line 989 of file determinize-star-inl.h.
References fst::Divide(), rnnlm::i, DeterminizerStar< F >::TempArc::ilabel, KALDI_ERR, DeterminizerStar< F >::TempArc::nextstate, DeterminizerStar< F >::TempArc::ostring, fst::Plus(), and DeterminizerStar< F >::TempArc::weight.
Referenced by DeterminizerStar< F >::Output().
|
inlineprivate |
Definition at line 501 of file determinize-star-inl.h.
References DeterminizerStar< F >::Element::state, DeterminizerStar< F >::Element::string, fst::Times(), and DeterminizerStar< F >::Element::weight.
|
inlineprivate |
Definition at line 555 of file determinize-star-inl.h.
|
private |
Definition at line 613 of file determinize-star-inl.h.
|
private |
Definition at line 610 of file determinize-star-inl.h.
|
private |
Definition at line 612 of file determinize-star-inl.h.
|
private |
Definition at line 620 of file determinize-star-inl.h.
|
private |
Definition at line 616 of file determinize-star-inl.h.
|
private |
Definition at line 617 of file determinize-star-inl.h.
|
private |
Definition at line 615 of file determinize-star-inl.h.
|
private |
Definition at line 609 of file determinize-star-inl.h.
|
private |
Definition at line 614 of file determinize-star-inl.h.
|
private |
Definition at line 611 of file determinize-star-inl.h.
|
private |
Definition at line 607 of file determinize-star-inl.h.
|
private |
Definition at line 605 of file determinize-star-inl.h.
|
private |
Definition at line 619 of file determinize-star-inl.h.