GRM-SFST  sfst-1.2.1
OpenGrm SFst Library
Classes | Namespaces | Enumerations | Functions
normalize.h File Reference
#include <sys/types.h>
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <memory>
#include <vector>
#include <fst/log.h>
#include <fst/float-weight.h>
#include <fst/fst.h>
#include <fst/matcher.h>
#include <fst/mutable-fst.h>
#include <fst/push.h>
#include <fst/weight.h>
#include <sfst/backoff.h>
#include <sfst/canonical.h>
#include <sfst/sfst.h>
#include <sfst/shortest-distance.h>
#include <sfst/state-weights.h>
#include <sfst/trim.h>
#include <fst/compat.h>
Include dependency graph for normalize.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sfst::internal::CountNormalizer< Arc >
 

Namespaces

 sfst
 
 sfst::internal
 

Enumerations

enum  sfst::CountNormType {
  sfst::NORM_SUMMED = 0, sfst::NORM_KL_MIN = 1, sfst::OPENFST_DEPRECATED =("Use `NORM_KL_MIN` instead.") = 1, sfst::NORM_KL_MIN_APPROXIMATED = 2,
  sfst::OPENFST_DEPRECATED =("Use `NORM_KL_MIN` instead.") = 1
}
 

Functions

template<class Arc >
void sfst::StateSums (const fst::Fst< Arc > &fst, typename Arc::StateId s, typename Arc::Label phi_label, fst::Log64Weight *high_sum, fst::Log64Weight *low_sum, fst::Log64Weight *phi_weight, ssize_t *phi_position)
 
template<class Arc >
bool sfst::IsNormalizedState (const fst::Fst< Arc > &fst, typename Arc::StateId s, typename Arc::Label phi_label, float delta)
 
template<class Arc >
bool sfst::IsNormalized (const fst::Fst< Arc > &fst, typename Arc::Label phi_label=fst::kNoLabel, float delta=fst::kDelta)
 
template<class Arc >
bool sfst::GlobalNormalize (fst::MutableFst< Arc > *fst, typename Arc::Label phi_label=fst::kNoLabel, float delta=fst::kDelta)
 
template<class Arc >
bool sfst::LocalNormalizeState (typename Arc::StateId s, fst::MutableFst< Arc > *fst)
 
template<class Arc >
bool sfst::LocalNormalize (fst::MutableFst< Arc > *fst)
 
template<class Arc >
bool sfst::PhiNormalizeState (typename Arc::StateId s, fst::MutableFst< Arc > *fst, typename Arc::Label phi_label=fst::kNoLabel)
 
template<class Arc >
bool sfst::PhiNormalize (fst::MutableFst< Arc > *fst, typename Arc::Label phi_label=fst::kNoLabel)
 
template<class Arc >
bool sfst::CountNormalize (fst::MutableFst< Arc > *fst, typename Arc::Label phi_label, CountNormType norm_type=NORM_SUMMED, bool trim=false, float delta=internal::CountNormalizer< Arc >::kNormDelta, double effective_zero=internal::CountNormalizer< Arc >::kEffectiveZero, size_t maxiters=internal::CountNormalizer< Arc >::kMaxNormIters)
 
template<class Arc >
bool sfst::Condition (fst::MutableFst< Arc > *fst, typename Arc::Label phi_label=fst::kNoLabel, float delta=fst::kDelta)