FST  openfst-1.7.1
OpenFst Library
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
weight.h File Reference
#include <cctype>
#include <cmath>
#include <iostream>
#include <sstream>
#include <type_traits>
#include <utility>
#include <fst/compat.h>
#include <fst/log.h>
#include <fst/util.h>
Include dependency graph for weight.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  fst::NaturalLess< W, IdempotentType >
class  fst::NaturalLess< W, typename std::enable_if< IsIdempotent< W >::value >::type >
class  fst::NaturalLess< W, typename std::enable_if<!IsIdempotent< W >::value >::type >
class  fst::Adder< Weight >
struct  fst::WeightConvert< W1, W2 >
struct  fst::WeightConvert< W, W >
struct  fst::WeightGenerate< W >
class  fst::internal::CompositeWeightIO
class  fst::CompositeWeightWriter
class  fst::CompositeWeightReader




template<class W >
using fst::IsIdempotent = std::integral_constant< bool,(W::Properties()&kIdempotent)!=0 >
template<class W >
using fst::IsPath = std::integral_constant< bool,(W::Properties()&kPath)!=0 >


enum  fst::DivideType { fst::DIVIDE_LEFT, fst::DIVIDE_RIGHT, fst::DIVIDE_ANY }


 DECLARE_string (fst_weight_parentheses)
 DECLARE_string (fst_weight_separator)
template<class Weight >
Weight fst::Power (const Weight &weight, size_t n)


constexpr float fst::kDelta = 1.0F / 1024.0F
constexpr uint64 fst::kLeftSemiring = 0x0000000000000001ULL
constexpr uint64 fst::kRightSemiring = 0x0000000000000002ULL
constexpr uint64 fst::kSemiring = kLeftSemiring | kRightSemiring
constexpr uint64 fst::kCommutative = 0x0000000000000004ULL
constexpr uint64 fst::kIdempotent = 0x0000000000000008ULL
constexpr uint64 fst::kPath = 0x0000000000000010ULL
constexpr size_t fst::kNumRandomWeights = 5

Function Documentation

DECLARE_string ( fst_weight_parentheses  )
DECLARE_string ( fst_weight_separator  )