FST
openfst-1.8.4
OpenFst Library
|
#include <string-weight.h>
Public Types | |
using | ReverseWeight = GallicWeight< Label, typename W::ReverseWeight, ReverseGallicType(G)> |
using | SW = StringWeight< Label, GallicStringType(G)> |
![]() | |
using | ReverseWeight = ProductWeight< typename StringWeight< Label, GallicStringType(G)>::ReverseWeight, typename W::ReverseWeight > |
![]() | |
using | ReverseWeight = PairWeight< typename StringWeight< Label, GallicStringType(G)>::ReverseWeight, typename W::ReverseWeight > |
Public Member Functions | |
GallicWeight ()=default | |
GallicWeight (SW w1, W w2) | |
GallicWeight (std::string_view s, int *nread=nullptr) | |
GallicWeight (const ProductWeight< SW, W > &w) | |
GallicWeight | Quantize (float delta=kDelta) const |
ReverseWeight | Reverse () const |
![]() | |
ProductWeight ()=default | |
ProductWeight (const PairWeight< StringWeight< Label, GallicStringType(G)>, W > &weight) | |
ProductWeight (StringWeight< Label, GallicStringType(G)>w1, Ww2) | |
ProductWeight | Quantize (float delta=kDelta) const |
ReverseWeight | Reverse () const |
![]() | |
PairWeight ()=default | |
PairWeight (StringWeight< Label, GallicStringType(G)>w1, Ww2) | |
std::istream & | Read (std::istream &strm) |
std::ostream & | Write (std::ostream &strm) const |
bool | Member () const |
size_t | Hash () const |
PairWeight< StringWeight< Label, GallicStringType(G)>, W > | Quantize (float delta=kDelta) const |
ReverseWeight | Reverse () const |
const StringWeight< Label, GallicStringType(G)> & | Value1 () const |
const W & | Value2 () const |
void | SetValue1 (const StringWeight< Label, GallicStringType(G)> &weight) |
void | SetValue2 (const W &weight) |
Static Public Member Functions | |
static const GallicWeight & | Zero () |
static const GallicWeight & | One () |
static const GallicWeight & | NoWeight () |
static const std::string & | Type () |
![]() | |
static const ProductWeight & | Zero () |
static const ProductWeight & | One () |
static const ProductWeight & | NoWeight () |
static const std::string & | Type () |
static constexpr uint64_t | Properties () |
![]() | |
static const PairWeight< StringWeight< Label, GallicStringType(G)>, W > & | Zero () |
static const PairWeight< StringWeight< Label, GallicStringType(G)>, W > & | One () |
static const PairWeight< StringWeight< Label, GallicStringType(G)>, W > & | NoWeight () |
Definition at line 578 of file string-weight.h.
using fst::GallicWeight< Label, W, G >::ReverseWeight = GallicWeight<Label, typename W::ReverseWeight, ReverseGallicType(G)> |
Definition at line 581 of file string-weight.h.
using fst::GallicWeight< Label, W, G >::SW = StringWeight<Label, GallicStringType(G)> |
Definition at line 582 of file string-weight.h.
|
default |
|
inline |
Definition at line 588 of file string-weight.h.
|
inlineexplicit |
Definition at line 590 of file string-weight.h.
|
inlineexplicit |
Definition at line 593 of file string-weight.h.
|
inlinestatic |
Definition at line 606 of file string-weight.h.
|
inlinestatic |
Definition at line 601 of file string-weight.h.
|
inline |
Definition at line 623 of file string-weight.h.
|
inline |
Definition at line 627 of file string-weight.h.
|
inlinestatic |
Definition at line 611 of file string-weight.h.
|
inlinestatic |
Definition at line 596 of file string-weight.h.