FST
openfst-1.8.4
OpenFst Library
|
#include <ngram-fst.h>
Public Types | |
typedef A | Arc |
typedef A::StateId | StateId |
typedef A::Label | Label |
typedef A::Weight | Weight |
using | Impl = I |
Public Types inherited from fst::ImplToExpandedFst< internal::NGramFstImpl< A > > | |
using | Impl = internal::NGramFstImpl< A > |
using | Arc = typename ExpandedFst< typename internal::NGramFstImpl< A >::Arc >::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
Public Types inherited from fst::ImplToFst< internal::NGramFstImpl< A >, ExpandedFst< typename internal::NGramFstImpl< A >::Arc > > | |
using | Impl = internal::NGramFstImpl< A > |
using | Arc = typename Impl::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
Public Types inherited from fst::ExpandedFst< typename internal::NGramFstImpl< A >::Arc > | |
using | Arc = typename internal::NGramFstImpl< A >::Arc |
using | StateId = typename Arc::StateId |
Public Types inherited from fst::Fst< A > | |
using | Arc = A |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
Public Member Functions | |
NGramFst (const Fst< A > &dst) | |
NGramFst (const Fst< A > &fst, std::vector< StateId > *order_out) | |
NGramFst (const NGramFst< A > &fst, bool safe=false) | |
NGramFst () | |
NGramFst (const char *data) | |
const char * | GetData (size_t *data_size) const |
const std::vector< Label > | GetContext (StateId s) const |
void | GetStates (const std::vector< Label > &context, std::vector< StateId > *state) const |
size_t | NumArcs (StateId s) const override |
NGramFst< A > * | Copy (bool safe=false) const override |
bool | Write (std::ostream &strm, const FstWriteOptions &opts) const override |
bool | Write (const std::string &source) 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 |
size_t | StorageSize () const |
Public Member Functions inherited from fst::ImplToExpandedFst< internal::NGramFstImpl< A > > | |
StateId | NumStates () const override |
Public Member Functions inherited from fst::ImplToFst< internal::NGramFstImpl< A >, ExpandedFst< typename internal::NGramFstImpl< A >::Arc > > | |
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 |
Public Member Functions inherited from fst::ExpandedFst< typename internal::NGramFstImpl< A >::Arc > | |
std::optional< StateId > | NumStatesIfKnown () const override |
Public Member Functions inherited from fst::Fst< A > | |
virtual | ~Fst ()=default |
virtual void | InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const =0 |
Static Public Member Functions | |
static NGramFst< A > * | Read (std::istream &strm, const FstReadOptions &opts) |
static NGramFst< A > * | Read (const std::string &source) |
static bool | HasRequiredProps (const Fst< A > &fst) |
static bool | HasRequiredStructure (const Fst< A > &fst) |
Static Public Member Functions inherited from fst::ExpandedFst< typename internal::NGramFstImpl< A >::Arc > | |
static ExpandedFst * | Read (std::istream &strm, const FstReadOptions &opts) |
static ExpandedFst * | Read (std::string_view source) |
Static Public Member Functions inherited from fst::Fst< A > | |
static Fst * | Read (std::istream &strm, const FstReadOptions &opts) |
static Fst * | Read (std::string_view source) |
Friends | |
class | ArcIterator< NGramFst< A > > |
class | NGramFstMatcher< A > |
Additional Inherited Members | |
Protected Member Functions inherited from fst::ImplToExpandedFst< internal::NGramFstImpl< A > > | |
ImplToExpandedFst (std::shared_ptr< Impl > impl) | |
ImplToExpandedFst (const ImplToExpandedFst &fst, bool safe) | |
Protected Member Functions inherited from fst::ImplToFst< internal::NGramFstImpl< A >, ExpandedFst< typename internal::NGramFstImpl< A >::Arc > > | |
ImplToFst (std::shared_ptr< Impl > 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 Impl * | GetImpl () const |
Impl * | GetMutableImpl () const |
std::shared_ptr< Impl > | GetSharedImpl () const |
bool | Unique () const |
void | SetImpl (std::shared_ptr< Impl > impl) |
Protected Member Functions inherited from fst::Fst< A > | |
bool | WriteFile (const std::string &source) const |
Static Protected Member Functions inherited from fst::ImplToExpandedFst< internal::NGramFstImpl< A > > | |
static Impl * | Read (std::istream &strm, const FstReadOptions &opts) |
static Impl * | Read (std::string_view source) |
Definition at line 57 of file ngram-fst.h.
typedef A fst::NGramFst< A >::Arc |
Definition at line 356 of file ngram-fst.h.
using fst::ImplToExpandedFst< I, FST >::Impl = I |
Definition at line 142 of file expanded-fst.h.
typedef A::Label fst::NGramFst< A >::Label |
Definition at line 358 of file ngram-fst.h.
typedef A::StateId fst::NGramFst< A >::StateId |
Definition at line 357 of file ngram-fst.h.
typedef A::Weight fst::NGramFst< A >::Weight |
Definition at line 359 of file ngram-fst.h.
|
inlineexplicit |
Definition at line 362 of file ngram-fst.h.
|
inline |
Definition at line 365 of file ngram-fst.h.
|
inline |
Definition at line 370 of file ngram-fst.h.
|
inline |
Definition at line 372 of file ngram-fst.h.
|
inlineexplicit |
Definition at line 376 of file ngram-fst.h.
|
inlineoverridevirtual |
Implements fst::ExpandedFst< typename internal::NGramFstImpl< A >::Arc >.
Definition at line 400 of file ngram-fst.h.
|
inline |
Definition at line 385 of file ngram-fst.h.
|
inline |
Definition at line 381 of file ngram-fst.h.
|
inline |
Definition at line 391 of file ngram-fst.h.
|
inlinestatic |
Definition at line 444 of file ngram-fst.h.
|
inlinestatic |
Definition at line 450 of file ngram-fst.h.
|
inlineoverride |
Definition at line 487 of file ngram-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< A >.
Definition at line 438 of file ngram-fst.h.
|
inlineoverridevirtual |
Implements fst::Fst< A >.
Definition at line 431 of file ngram-fst.h.
|
inlineoverride |
Definition at line 396 of file ngram-fst.h.
|
inlinestatic |
Definition at line 404 of file ngram-fst.h.
|
inlinestatic |
Definition at line 409 of file ngram-fst.h.
|
inline |
Definition at line 442 of file ngram-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< A >.
Definition at line 423 of file ngram-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< A >.
Definition at line 427 of file ngram-fst.h.
|
friend |
Definition at line 352 of file ngram-fst.h.
|
friend |
Definition at line 353 of file ngram-fst.h.