FST
openfst-1.8.2.post1
OpenFst Library
|
#include <linear-fst.h>
Public Types | |
typedef A | Arc |
typedef A::Label | Label |
typedef A::Weight | Weight |
typedef A::StateId | StateId |
typedef DefaultCacheStore< A > | Store |
typedef Store::State | State |
using | Impl = internal::LinearClassifierFstImpl< A > |
![]() | |
using | Arc = typename internal::LinearClassifierFstImpl< A >::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
![]() | |
using | Arc = typename internal::LinearClassifierFstImpl< A >::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
Public Member Functions | |
LinearClassifierFst () | |
LinearClassifierFst (LinearFstData< A > *data, size_t num_classes, const SymbolTable *isyms=nullptr, const SymbolTable *osyms=nullptr, CacheOptions opts=CacheOptions()) | |
LinearClassifierFst (const Fst< A > &fst) | |
LinearClassifierFst (const LinearClassifierFst< A > &fst, bool safe=false) | |
LinearClassifierFst< A > * | Copy (bool safe=false) const override |
void | InitStateIterator (StateIteratorData< A > *data) const override |
void | InitArcIterator (StateId s, ArcIteratorData< A > *data) const override |
MatcherBase< A > * | InitMatcher (MatchType match_type) const override |
bool | Write (const std::string &source) const override |
bool | Write (std::ostream &strm, const FstWriteOptions &opts) const override |
![]() | |
StateId | Start () const override |
Weight | Final (StateId s) const override |
size_t | NumArcs (StateId s) const override |
size_t | NumInputEpsilons (StateId s) const override |
size_t | NumOutputEpsilons (StateId s) const override |
uint64_t | Properties (uint64_t mask, bool test) const override |
const std::string & | Type () const override |
const SymbolTable * | InputSymbols () const override |
const SymbolTable * | OutputSymbols () const override |
![]() | |
virtual | ~Fst () |
virtual void | InitStateIterator (StateIteratorData< Arc > *data) const =0 |
virtual void | InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const =0 |
Static Public Member Functions | |
static LinearClassifierFst< A > * | Read (const std::string &source) |
static LinearClassifierFst< A > * | Read (std::istream &in, const FstReadOptions &opts) |
![]() | |
static Fst * | Read (std::istream &strm, const FstReadOptions &opts) |
static Fst * | Read (const std::string &source) |
Friends | |
class | ArcIterator< LinearClassifierFst< A > > |
class | StateIterator< LinearClassifierFst< A > > |
class | LinearFstMatcherTpl< LinearClassifierFst< A > > |
Additional Inherited Members | |
![]() | |
ImplToFst (std::shared_ptr< internal::LinearClassifierFstImpl< A > > impl) | |
ImplToFst (const ImplToFst &fst, bool safe) | |
ImplToFst ()=delete | |
ImplToFst (const ImplToFst &fst) | |
ImplToFst (ImplToFst &&fst) noexcept | |
ImplToFst & | operator= (const ImplToFst &fst) |
ImplToFst & | operator= (ImplToFst &&fst) noexcept |
const internal::LinearClassifierFstImpl< A > * | GetImpl () const |
internal::LinearClassifierFstImpl< A > * | GetMutableImpl () const |
std::shared_ptr< internal::LinearClassifierFstImpl< A > > | GetSharedImpl () const |
bool | Unique () const |
void | SetImpl (std::shared_ptr< internal::LinearClassifierFstImpl< A > > impl) |
![]() | |
bool | WriteFile (const std::string &source) const |
Definition at line 909 of file linear-fst.h.
typedef A fst::LinearClassifierFst< A >::Arc |
Definition at line 916 of file linear-fst.h.
using fst::LinearClassifierFst< A >::Impl = internal::LinearClassifierFstImpl<A> |
Definition at line 922 of file linear-fst.h.
typedef A::Label fst::LinearClassifierFst< A >::Label |
Definition at line 917 of file linear-fst.h.
typedef Store::State fst::LinearClassifierFst< A >::State |
Definition at line 921 of file linear-fst.h.
typedef A::StateId fst::LinearClassifierFst< A >::StateId |
Definition at line 919 of file linear-fst.h.
typedef DefaultCacheStore<A> fst::LinearClassifierFst< A >::Store |
Definition at line 920 of file linear-fst.h.
typedef A::Weight fst::LinearClassifierFst< A >::Weight |
Definition at line 918 of file linear-fst.h.
|
inline |
Definition at line 924 of file linear-fst.h.
|
inlineexplicit |
Definition at line 926 of file linear-fst.h.
|
inlineexplicit |
Definition at line 933 of file linear-fst.h.
|
inline |
Definition at line 939 of file linear-fst.h.
|
inlineoverridevirtual |
Implements fst::Fst< typename internal::LinearClassifierFstImpl< A >::Arc >.
Definition at line 943 of file linear-fst.h.
|
inlineoverride |
Definition at line 949 of file linear-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< typename internal::LinearClassifierFstImpl< A >::Arc >.
Definition at line 953 of file linear-fst.h.
|
inlineoverride |
Definition at line 1030 of file linear-fst.h.
|
inlinestatic |
Definition at line 957 of file linear-fst.h.
|
inlinestatic |
Definition at line 971 of file linear-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< typename internal::LinearClassifierFstImpl< A >::Arc >.
Definition at line 978 of file linear-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< typename internal::LinearClassifierFstImpl< A >::Arc >.
Definition at line 992 of file linear-fst.h.
|
friend |
Definition at line 912 of file linear-fst.h.
|
friend |
Definition at line 914 of file linear-fst.h.
|
friend |
Definition at line 913 of file linear-fst.h.