FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::internal::LinearTaggerFstImpl< A > Class Template Reference

#include <linear-fst.h>

Inheritance diagram for fst::internal::LinearTaggerFstImpl< A >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::LinearTaggerFstImpl< A >:
Collaboration graph
[legend]

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

 LinearTaggerFstImpl ()
 
 LinearTaggerFstImpl (const LinearFstData< Arc > *data, const SymbolTable *isyms, const SymbolTable *osyms, CacheOptions opts)
 
 LinearTaggerFstImpl (const LinearTaggerFstImpl &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
 
FstImploperator= (const FstImpl &impl)
 
FstImploperator= (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 SymbolTableInputSymbols () const
 
SymbolTableInputSymbols ()
 
const SymbolTableOutputSymbols () const
 
SymbolTableOutputSymbols ()
 
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 LinearTaggerFstImplRead (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_
 

Detailed Description

template<class A>
class fst::internal::LinearTaggerFstImpl< A >

Definition at line 65 of file linear-fst.h.

Member Typedef Documentation

template<class A >
typedef A fst::internal::LinearTaggerFstImpl< A >::Arc

Definition at line 81 of file linear-fst.h.

template<class A >
typedef A::Label fst::internal::LinearTaggerFstImpl< A >::Label

Definition at line 82 of file linear-fst.h.

template<class A >
typedef Collection<StateId, Label>::SetIterator fst::internal::LinearTaggerFstImpl< A >::NGramIterator

Definition at line 85 of file linear-fst.h.

template<class A >
typedef A::StateId fst::internal::LinearTaggerFstImpl< A >::StateId

Definition at line 84 of file linear-fst.h.

template<class A >
typedef A::Weight fst::internal::LinearTaggerFstImpl< A >::Weight

Definition at line 83 of file linear-fst.h.

Constructor & Destructor Documentation

template<class A >
fst::internal::LinearTaggerFstImpl< A >::LinearTaggerFstImpl ( )
inline

Definition at line 88 of file linear-fst.h.

template<class A >
fst::internal::LinearTaggerFstImpl< A >::LinearTaggerFstImpl ( const LinearFstData< Arc > *  data,
const SymbolTable isyms,
const SymbolTable osyms,
CacheOptions  opts 
)
inline

Definition at line 100 of file linear-fst.h.

template<class A >
fst::internal::LinearTaggerFstImpl< A >::LinearTaggerFstImpl ( const LinearTaggerFstImpl< A > &  impl)
inline

Definition at line 111 of file linear-fst.h.

Member Function Documentation

template<class A >
void fst::internal::LinearTaggerFstImpl< A >::Expand ( StateId  s)

Definition at line 394 of file linear-fst.h.

template<class A >
Weight fst::internal::LinearTaggerFstImpl< A >::Final ( StateId  s)
inline

Definition at line 128 of file linear-fst.h.

template<class A >
void fst::internal::LinearTaggerFstImpl< A >::InitArcIterator ( StateId  s,
ArcIteratorData< A > *  data 
)
inline

Definition at line 156 of file linear-fst.h.

template<class A >
void fst::internal::LinearTaggerFstImpl< A >::MatchInput ( StateId  s,
Label  ilabel,
std::vector< Arc > *  arcs 
)

Definition at line 424 of file linear-fst.h.

template<class A >
size_t fst::internal::LinearTaggerFstImpl< A >::NumArcs ( StateId  s)
inline

Definition at line 141 of file linear-fst.h.

template<class A >
size_t fst::internal::LinearTaggerFstImpl< A >::NumInputEpsilons ( StateId  s)
inline

Definition at line 146 of file linear-fst.h.

template<class A >
size_t fst::internal::LinearTaggerFstImpl< A >::NumOutputEpsilons ( StateId  s)
inline

Definition at line 151 of file linear-fst.h.

template<class A >
LinearTaggerFstImpl< A > * fst::internal::LinearTaggerFstImpl< A >::Read ( std::istream &  strm,
const FstReadOptions opts 
)
inlinestatic

Definition at line 451 of file linear-fst.h.

template<class A >
StateId fst::internal::LinearTaggerFstImpl< A >::Start ( )
inline

Definition at line 120 of file linear-fst.h.

template<class A >
bool fst::internal::LinearTaggerFstImpl< A >::Write ( std::ostream &  strm,
const FstWriteOptions opts 
) const
inline

Definition at line 172 of file linear-fst.h.


The documentation for this class was generated from the following file: