#include <word-align-lattice.h>
Public Types | |
enum | PhoneType { kNoPhone = 0, kWordBeginPhone, kWordEndPhone, kWordBeginAndEndPhone, kWordInternalPhone, kNonWordPhone } |
Public Member Functions | |
WordBoundaryInfo (const WordBoundaryInfoOpts &opts) | |
WordBoundaryInfo (const WordBoundaryInfoNewOpts &opts) | |
WordBoundaryInfo (const WordBoundaryInfoNewOpts &opts, std::string word_boundary_file) | |
void | Init (std::istream &stream) |
PhoneType | TypeOfPhone (int32 p) const |
Public Attributes | |
std::vector< PhoneType > | phone_to_type |
int32 | silence_label |
int32 | partial_word_label |
bool | reorder |
Private Member Functions | |
void | SetOptions (const std::string int_list, PhoneType phone_type) |
Definition at line 119 of file word-align-lattice.h.
enum PhoneType |
Enumerator | |
---|---|
kNoPhone | |
kWordBeginPhone | |
kWordEndPhone | |
kWordBeginAndEndPhone | |
kWordInternalPhone | |
kNonWordPhone |
Definition at line 136 of file word-align-lattice.h.
WordBoundaryInfo | ( | const WordBoundaryInfoOpts & | opts | ) |
Definition at line 669 of file word-align-lattice.cc.
References WordBoundaryInfoOpts::partial_word_label, WordBoundaryInfoOpts::reorder, WordBoundaryInfoOpts::silence_has_olabels, WordBoundaryInfoOpts::silence_label, WordBoundaryInfoOpts::silence_phones, WordBoundaryInfoOpts::wbegin_and_end_phones, WordBoundaryInfoOpts::wbegin_phones, WordBoundaryInfoOpts::wend_phones, and WordBoundaryInfoOpts::winternal_phones.
WordBoundaryInfo | ( | const WordBoundaryInfoNewOpts & | opts | ) |
Definition at line 681 of file word-align-lattice.cc.
References WordBoundaryInfoNewOpts::partial_word_label, WordBoundaryInfoNewOpts::reorder, and WordBoundaryInfoNewOpts::silence_label.
WordBoundaryInfo | ( | const WordBoundaryInfoNewOpts & | opts, |
std::string | word_boundary_file | ||
) |
Definition at line 687 of file word-align-lattice.cc.
References KALDI_ASSERT, WordBoundaryInfoNewOpts::partial_word_label, WordBoundaryInfoNewOpts::reorder, WordBoundaryInfoNewOpts::silence_label, and Input::Stream().
void Init | ( | std::istream & | stream | ) |
Definition at line 698 of file word-align-lattice.cc.
References kaldi::ConvertStringToInteger(), KALDI_ASSERT, KALDI_ERR, and kaldi::SplitStringToVector().
|
private |
Definition at line 650 of file word-align-lattice.cc.
References rnnlm::i, KALDI_ASSERT, KALDI_ERR, and kaldi::SplitStringToIntegers().
Definition at line 147 of file word-align-lattice.h.
References KALDI_ERR.
Referenced by kaldi::IsPlausibleWord(), LatticeWordAligner::ComputationState::OutputArcForce(), LatticeWordAligner::ComputationState::OutputNormalWordArc(), LatticeWordAligner::ComputationState::OutputOnePhoneWordArc(), LatticeWordAligner::ComputationState::OutputSilenceArc(), WordAlignedLatticeTester::TestArcNormalWord(), WordAlignedLatticeTester::TestArcOnePhoneWord(), and WordAlignedLatticeTester::TestArcSilence().
int32 partial_word_label |
Definition at line 158 of file word-align-lattice.h.
Referenced by LatticeWordAligner::LatticeWordAligner(), LatticeWordAligner::ComputationState::OutputArcForce(), LatticeWordAligner::RemoveEpsilonsFromLattice(), and WordAlignedLatticeTester::TestArcPartialWord().
std::vector<PhoneType> phone_to_type |
Definition at line 154 of file word-align-lattice.h.
bool reorder |
Definition at line 162 of file word-align-lattice.h.
Referenced by kaldi::IsPlausibleWord(), LatticeWordAligner::ComputationState::OutputArcForce(), LatticeWordAligner::ComputationState::OutputNormalWordArc(), LatticeWordAligner::ComputationState::OutputOnePhoneWordArc(), LatticeWordAligner::ComputationState::OutputSilenceArc(), WordAlignedLatticeTester::TestArcNormalWord(), WordAlignedLatticeTester::TestArcOnePhoneWord(), and WordAlignedLatticeTester::TestArcSilence().
int32 silence_label |
Definition at line 156 of file word-align-lattice.h.
Referenced by LatticeWordAligner::LatticeWordAligner(), LatticeWordAligner::ComputationState::OutputArcForce(), LatticeWordAligner::ComputationState::OutputSilenceArc(), LatticeWordAligner::RemoveEpsilonsFromLattice(), WordAlignedLatticeTester::TestArcSilence(), and WordAlignedLatticeTester::TestEquivalent().