FST
openfst-1.8.3
OpenFst Library
|
#include <linear-fst.h>
Public Types | |
typedef A | Arc |
typedef A::Label | Label |
typedef A::Weight | Weight |
typedef A::StateId | StateId |
typedef Collection< StateId, Label >::SetIterator | NGramIterator |
Public Types inherited from fst::internal::CacheImpl< A > | |
using | State = CacheState< A > |
Public Types inherited from fst::internal::CacheBaseImpl< CacheState< A > > | |
using | Arc = typename CacheState< A >::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
using | Store = DefaultCacheStore< typename CacheState< A >::Arc > |
Public Types inherited from fst::internal::FstImpl< CacheState< A >::Arc > | |
using | StateId = typename CacheState< A >::Arc::StateId |
using | Weight = typename CacheState< A >::Arc::Weight |
Public Member Functions | |
LinearClassifierFstImpl () | |
LinearClassifierFstImpl (const LinearFstData< Arc > *data, size_t num_classes, const SymbolTable *isyms, const SymbolTable *osyms, CacheOptions opts) | |
LinearClassifierFstImpl (const LinearClassifierFstImpl &impl) | |
StateId | Start () |
Weight | Final (StateId s) |
size_t | NumArcs (StateId s) |
size_t | NumInputEpsilons (StateId s) |
size_t | NumOutputEpsilons (StateId s) |
void | InitArcIterator (StateId s, ArcIteratorData< A > *data) |
void | Expand (StateId s) |
void | MatchInput (StateId s, Label ilabel, std::vector< Arc > *arcs) |
bool | Write (std::ostream &strm, const FstWriteOptions &opts) const |
Public Member Functions inherited from fst::internal::CacheImpl< A > | |
CacheImpl ()=default | |
CacheImpl (const CacheOptions &opts) | |
CacheImpl (const CacheImpl< A > &impl, bool preserve_cache=false) | |
Public Member Functions inherited from fst::internal::CacheBaseImpl< CacheState< A > > | |
CacheBaseImpl (const CacheOptions &opts=CacheOptions()) | |
CacheBaseImpl (const CacheImplOptions< DefaultCacheStore< typename CacheState< A >::Arc > > &opts) | |
CacheBaseImpl (const CacheBaseImpl< CacheState< A >, DefaultCacheStore< typename CacheState< A >::Arc > > &impl, bool preserve_cache=false) | |
~CacheBaseImpl () override | |
void | SetStart (StateId s) |
void | SetFinal (StateId s, Weight weight=Weight::One()) |
void | PushArc (StateId s, const Arc &arc) |
void | PushArc (StateId s, Arc &&arc) |
void | EmplaceArc (StateId s, T &&...ctor_args) |
void | SetArcs (StateId s) |
void | ReserveArcs (StateId s, size_t n) |
void | DeleteArcs (StateId s) |
void | DeleteArcs (StateId s, size_t n) |
void | Clear () |
bool | HasStart () const |
bool | HasFinal (StateId s) const |
bool | HasArcs (StateId s) const |
StateId | Start () const |
Weight | Final (StateId s) const |
size_t | NumArcs (StateId s) const |
size_t | NumInputEpsilons (StateId s) const |
size_t | NumOutputEpsilons (StateId s) const |
void | InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const |
StateId | NumKnownStates () const |
void | UpdateNumKnownStates (StateId s) |
StateId | MinUnexpandedState () const |
StateId | MaxExpandedState () const |
void | SetExpandedState (StateId s) |
bool | ExpandedState (StateId s) const |
const DefaultCacheStore< typename CacheState< A >::Arc > * | GetCacheStore () const |
DefaultCacheStore< typename CacheState< A >::Arc > * | GetCacheStore () |
bool | GetCacheGc () const |
size_t | GetCacheLimit () const |
Public Member Functions inherited from fst::internal::FstImpl< CacheState< A >::Arc > | |
FstImpl ()=default | |
FstImpl (const FstImpl< CacheState< A >::Arc > &impl) | |
FstImpl (FstImpl< CacheState< A >::Arc > &&impl) noexcept | |
virtual | ~FstImpl ()=default |
FstImpl & | operator= (const FstImpl &impl) |
FstImpl & | operator= (FstImpl &&impl) noexcept |
const std::string & | Type () const |
void | SetType (std::string_view type) |
virtual uint64_t | Properties () const |
virtual uint64_t | Properties (uint64_t mask) const |
void | SetProperties (uint64_t props) |
void | SetProperties (uint64_t props, uint64_t mask) |
void | SetProperties (uint64_t props, uint64_t mask) const |
void | UpdateProperties (uint64_t props, uint64_t mask) |
const SymbolTable * | InputSymbols () const |
SymbolTable * | InputSymbols () |
const SymbolTable * | OutputSymbols () const |
SymbolTable * | OutputSymbols () |
void | SetInputSymbols (const SymbolTable *isyms) |
void | SetOutputSymbols (const SymbolTable *osyms) |
bool | ReadHeader (std::istream &strm, const FstReadOptions &opts, int min_version, FstHeader *hdr) |
void | WriteHeader (std::ostream &strm, const FstWriteOptions &opts, int version, FstHeader *hdr) const |
Static Public Member Functions | |
static LinearClassifierFstImpl< A > * | Read (std::istream &strm, const FstReadOptions &opts) |
Static Public Member Functions inherited from fst::internal::FstImpl< CacheState< A >::Arc > | |
static void | WriteFstHeader (const Fst< CacheState< A >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr) |
static bool | UpdateFstHeader (const Fst< CacheState< A >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr, size_t header_offset) |
Additional Inherited Members | |
Protected Attributes inherited from fst::internal::FstImpl< CacheState< A >::Arc > | |
std::atomic< uint64_t > | properties_ |
Definition at line 599 of file linear-fst.h.
typedef A fst::internal::LinearClassifierFstImpl< A >::Arc |
Definition at line 615 of file linear-fst.h.
typedef A::Label fst::internal::LinearClassifierFstImpl< A >::Label |
Definition at line 616 of file linear-fst.h.
typedef Collection<StateId, Label>::SetIterator fst::internal::LinearClassifierFstImpl< A >::NGramIterator |
Definition at line 619 of file linear-fst.h.
typedef A::StateId fst::internal::LinearClassifierFstImpl< A >::StateId |
Definition at line 618 of file linear-fst.h.
typedef A::Weight fst::internal::LinearClassifierFstImpl< A >::Weight |
Definition at line 617 of file linear-fst.h.
|
inline |
Definition at line 622 of file linear-fst.h.
|
inline |
Definition at line 632 of file linear-fst.h.
|
inline |
Definition at line 647 of file linear-fst.h.
void fst::internal::LinearClassifierFstImpl< A >::Expand | ( | StateId | s | ) |
Definition at line 824 of file linear-fst.h.
|
inline |
Definition at line 667 of file linear-fst.h.
|
inline |
Definition at line 691 of file linear-fst.h.
void fst::internal::LinearClassifierFstImpl< A >::MatchInput | ( | StateId | s, |
Label | ilabel, | ||
std::vector< Arc > * | arcs | ||
) |
Definition at line 859 of file linear-fst.h.
|
inline |
Definition at line 676 of file linear-fst.h.
|
inline |
Definition at line 681 of file linear-fst.h.
|
inline |
Definition at line 686 of file linear-fst.h.
|
inlinestatic |
Definition at line 888 of file linear-fst.h.
|
inline |
Definition at line 659 of file linear-fst.h.
|
inline |
Definition at line 707 of file linear-fst.h.