#include <lattice-weight.h>
Public Types | |
typedef WeightType | W |
typedef CompactLatticeWeightTpl< WeightType, IntType > | ReverseWeight |
Public Member Functions | |
CompactLatticeWeightTpl () | |
CompactLatticeWeightTpl (const WeightType &w, const std::vector< IntType > &s) | |
CompactLatticeWeightTpl & | operator= (const CompactLatticeWeightTpl< WeightType, IntType > &w) |
const W & | Weight () const |
const std::vector< IntType > & | String () const |
void | SetWeight (const W &w) |
void | SetString (const std::vector< IntType > &s) |
CompactLatticeWeightTpl< WeightType, IntType > | Reverse () const |
bool | Member () const |
CompactLatticeWeightTpl | 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 CompactLatticeWeightTpl< WeightType, IntType > | Zero () |
static const CompactLatticeWeightTpl< WeightType, IntType > | One () |
static std::string | GetIntSizeString () |
static const std::string & | Type () |
static const CompactLatticeWeightTpl< WeightType, IntType > | NoWeight () |
static constexpr uint64 | Properties () |
Private Attributes | |
W | weight_ |
std::vector< IntType > | string_ |
Definition at line 423 of file lattice-weight.h.
typedef CompactLatticeWeightTpl<WeightType, IntType> ReverseWeight |
Definition at line 427 of file lattice-weight.h.
typedef WeightType W |
Definition at line 425 of file lattice-weight.h.
|
inline |
Definition at line 436 of file lattice-weight.h.
|
inline |
Definition at line 438 of file lattice-weight.h.
|
inlinestatic |
Definition at line 465 of file lattice-weight.h.
|
inline |
|
inline |
|
inlinestatic |
Definition at line 477 of file lattice-weight.h.
|
inlinestatic |
Definition at line 460 of file lattice-weight.h.
Referenced by kaldi::nnet2::AppendDiscriminativeExamples(), fst::CompactLatticeWeightTest(), kaldi::GenerateCompactLatticeRandomly(), SingleUtteranceNnet2DecoderThreaded::GetLattice(), LatticeLexiconWordAligner::ProcessFinal(), LatticePhoneAligner::ProcessQueueElement(), LatticeWordAligner::ProcessQueueElement(), and LatticeReader::ReadText().
|
inline |
Definition at line 441 of file lattice-weight.h.
References CompactLatticeWeightTpl< WeightType, IntType >::string_, and CompactLatticeWeightTpl< WeightType, IntType >::weight_.
|
inlinestatic |
Definition at line 506 of file lattice-weight.h.
|
inline |
Definition at line 502 of file lattice-weight.h.
Referenced by fst::CompactLatticeWeightTest().
|
inline |
Definition at line 512 of file lattice-weight.h.
References rnnlm::i, and KALDI_WARN.
Referenced by fst::CompactLatticeWeightTest().
|
inline |
|
inline |
|
inline |
Definition at line 451 of file lattice-weight.h.
Referenced by kaldi::CompactLatticeNormalize(), fst::operator>>(), LatticeIncrementalDeterminizer::ProcessArcsFromChunkStartState(), and kaldi::RescoreCompactLatticeInternal().
|
inline |
Definition at line 449 of file lattice-weight.h.
Referenced by fst::ApproxEqual(), fst::Compare(), fst::Divide(), CompactLatticeMinimizer< Weight, IntType >::InitHashValue(), fst::operator!=(), CompactLatticeWeightCommonDivisorTpl< BaseWeightType, IntType >::operator()(), fst::operator==(), fst::ScaleTupleWeight(), WordAlignedLatticeTester::TestFinal(), fst::Times(), and CompactLatticeMinimizer< Weight, IntType >::UpdateHashValueForTransition().
|
inlinestatic |
Definition at line 471 of file lattice-weight.h.
Definition at line 447 of file lattice-weight.h.
Referenced by fst::ApproxEqual(), kaldi::CompactLatticeNormalize(), fst::Compare(), fst::Divide(), fst::operator!=(), CompactLatticeWeightCommonDivisorTpl< BaseWeightType, IntType >::operator()(), fst::operator==(), LatticeIncrementalDeterminizer::ProcessArcsFromChunkStartState(), kaldi::RescoreCompactLatticeInternal(), fst::ScaleTupleWeight(), and fst::Times().
|
inline |
|
inlinestatic |
Definition at line 455 of file lattice-weight.h.
Referenced by CompactLatticePusher< Weight, IntType >::ApplyShifts(), CompactLatticePusher< Weight, IntType >::CheckForConflict(), kaldi::CompactLatticeStateTimes(), fst::CompactLatticeWeightTest(), CompactLatticePusher< Weight, IntType >::ComputeShifts(), fst::Divide(), CompactLatticePusher< Weight, IntType >::GetString(), CompactLatticeMinimizer< Weight, IntType >::InitHashValue(), kaldi::LongestSentenceLength(), LatticePhoneAligner::ProcessQueueElement(), LatticeWordAligner::ProcessQueueElement(), LatticeLexiconWordAligner::ProcessQueueElement(), fst::PushCompactLatticeWeights(), kaldi::RescoreCompactLatticeInternal(), LatticeReader::StrToCWeight(), WordAlignedLatticeTester::Test(), kaldi::TestPushCompactLatticeStrings(), and fst::Times().
|
private |
Definition at line 553 of file lattice-weight.h.
Referenced by CompactLatticeWeightTpl< WeightType, IntType >::operator=().
|
private |
Definition at line 552 of file lattice-weight.h.
Referenced by CompactLatticeWeightTpl< WeightType, IntType >::operator=().