#include <lattice-weight.h>
Public Types | |
typedef FloatType | T |
typedef LatticeWeightTpl | ReverseWeight |
Public Member Functions | |
T | Value1 () const |
T | Value2 () const |
void | SetValue1 (T f) |
void | SetValue2 (T f) |
LatticeWeightTpl () | |
LatticeWeightTpl (T a, T b) | |
LatticeWeightTpl (const LatticeWeightTpl &other) | |
LatticeWeightTpl & | operator= (const LatticeWeightTpl &w) |
LatticeWeightTpl< FloatType > | Reverse () const |
bool | Member () const |
LatticeWeightTpl | Quantize (float delta=kDelta) const |
std::istream & | Read (std::istream &strm) |
std::ostream & | Write (std::ostream &strm) const |
size_t | Hash () const |
Static Public Member Functions | |
static const LatticeWeightTpl | Zero () |
static const LatticeWeightTpl | One () |
static const std::string & | Type () |
static const LatticeWeightTpl | NoWeight () |
static constexpr uint64 | Properties () |
Protected Member Functions | |
std::istream & | ReadNoParen (std::istream &strm, char separator) |
Static Protected Member Functions | |
static void | WriteFloatType (std::ostream &strm, const T &f) |
static void | ReadFloatType (std::istream &strm, T &f) |
Private Attributes | |
T | value1_ |
T | value2_ |
Friends | |
std::istream & | operator>> (std::istream &, LatticeWeightTpl< FloatType > &) |
std::ostream & | operator (std::ostream &, const LatticeWeightTpl< FloatType > &) |
Definition at line 37 of file lattice-weight.h.
typedef LatticeWeightTpl ReverseWeight |
Definition at line 50 of file lattice-weight.h.
typedef FloatType T |
Definition at line 49 of file lattice-weight.h.
|
inline |
Definition at line 60 of file lattice-weight.h.
Referenced by LatticeWeightTpl< BaseFloat >::NoWeight(), LatticeWeightTpl< BaseFloat >::One(), LatticeWeightTpl< BaseFloat >::Quantize(), and LatticeWeightTpl< BaseFloat >::Zero().
|
inline |
Definition at line 62 of file lattice-weight.h.
|
inline |
Definition at line 64 of file lattice-weight.h.
|
inline |
Definition at line 147 of file lattice-weight.h.
|
inline |
|
inlinestatic |
Definition at line 90 of file lattice-weight.h.
|
inlinestatic |
Definition at line 81 of file lattice-weight.h.
|
inline |
Definition at line 66 of file lattice-weight.h.
|
inlinestatic |
Definition at line 122 of file lattice-weight.h.
|
inline |
Definition at line 111 of file lattice-weight.h.
Referenced by fst::LatticeWeightTest().
|
inline |
|
inlinestaticprotected |
Definition at line 174 of file lattice-weight.h.
Referenced by LatticeWeightTpl< BaseFloat >::ReadNoParen().
|
inlineprotected |
Definition at line 193 of file lattice-weight.h.
Referenced by fst::operator>>().
|
inline |
Definition at line 72 of file lattice-weight.h.
Referenced by fst::LatticeWeightTest().
|
inline |
Definition at line 56 of file lattice-weight.h.
Referenced by kaldi::AddWordInsPenToCompactLattice(), kaldi::CompactLatticeNormalize(), fst::ConvertLatticeWeight(), and DiscriminativeSupervisionSplitter::CreateRangeLattice().
|
inline |
Definition at line 58 of file lattice-weight.h.
Referenced by fst::ConvertLatticeWeight(), DiscriminativeSupervisionSplitter::CreateRangeLattice(), DiscriminativeComputation::LatticeAcousticRescore(), kaldi::ReplaceAcousticScoresFromMap(), and kaldi::RescoreCompactLatticeInternal().
|
inlinestatic |
Definition at line 85 of file lattice-weight.h.
|
inline |
Definition at line 52 of file lattice-weight.h.
Referenced by kaldi::AddWordInsPenToCompactLattice(), kaldi::AlignUtteranceWrapper(), fst::ApproxEqual(), kaldi::CompactLatticeNormalize(), fst::Compare(), fst::ConvertLatticeWeight(), fst::ConvertToCost(), kaldi::DecodeUtterance(), kaldi::DecodeUtteranceLatticeFaster(), kaldi::DecodeUtteranceLatticeIncremental(), kaldi::DecodeUtteranceLatticeSimple(), fst::Divide(), kaldi::GetDiagnosticsAndPrintOutput(), LatticeIncrementalDeterminizer::GetRawLatticeFinalCosts(), fst::LatticeWeightTest(), main(), fst::operator!=(), fst::operator==(), NnetBatchDecoder::ProcessOutputUtterance(), fst::ScaleTupleWeight(), fst::Times(), and DecodeUtteranceLatticeFasterClass::~DecodeUtteranceLatticeFasterClass().
|
inline |
Definition at line 54 of file lattice-weight.h.
Referenced by kaldi::AlignUtteranceWrapper(), fst::ApproxEqual(), fst::Compare(), kaldi::ComputeAcousticScoresMap(), fst::ConvertLatticeWeight(), fst::ConvertToCost(), kaldi::DecodeUtterance(), kaldi::DecodeUtteranceLatticeFaster(), kaldi::DecodeUtteranceLatticeIncremental(), kaldi::DecodeUtteranceLatticeSimple(), fst::Divide(), kaldi::GetDiagnosticsAndPrintOutput(), LatticeIncrementalDeterminizer::GetRawLatticeFinalCosts(), fst::LatticeWeightTest(), main(), fst::operator!=(), fst::operator==(), NnetBatchDecoder::ProcessOutputUtterance(), fst::ScaleTupleWeight(), fst::Times(), and DecodeUtteranceLatticeFasterClass::~DecodeUtteranceLatticeFasterClass().
|
inline |
Definition at line 141 of file lattice-weight.h.
|
inlinestaticprotected |
Definition at line 162 of file lattice-weight.h.
Referenced by fst::operator<<().
|
inlinestatic |
|
friend |
|
friend |
Definition at line 407 of file lattice-weight.h.
|
private |
Definition at line 220 of file lattice-weight.h.
Referenced by LatticeWeightTpl< BaseFloat >::Hash(), LatticeWeightTpl< BaseFloat >::Member(), LatticeWeightTpl< BaseFloat >::operator=(), LatticeWeightTpl< BaseFloat >::Quantize(), LatticeWeightTpl< BaseFloat >::Read(), LatticeWeightTpl< BaseFloat >::ReadNoParen(), LatticeWeightTpl< BaseFloat >::SetValue1(), LatticeWeightTpl< BaseFloat >::Value1(), and LatticeWeightTpl< BaseFloat >::Write().
|
private |
Definition at line 221 of file lattice-weight.h.
Referenced by LatticeWeightTpl< BaseFloat >::Hash(), LatticeWeightTpl< BaseFloat >::LatticeWeightTpl(), LatticeWeightTpl< BaseFloat >::Member(), LatticeWeightTpl< BaseFloat >::operator=(), LatticeWeightTpl< BaseFloat >::Quantize(), LatticeWeightTpl< BaseFloat >::Read(), LatticeWeightTpl< BaseFloat >::ReadNoParen(), LatticeWeightTpl< BaseFloat >::SetValue2(), LatticeWeightTpl< BaseFloat >::Value2(), and LatticeWeightTpl< BaseFloat >::Write().