libime
Public Member Functions | Protected Member Functions | List of all members
libime::TableDecoder Class Reference
Inheritance diagram for libime::TableDecoder:
Inheritance graph
[legend]
Collaboration diagram for libime::TableDecoder:
Collaboration graph
[legend]

Public Member Functions

 TableDecoder (const TableBasedDictionary *dict, const LanguageModelBase *model)
 
- Public Member Functions inherited from libime::Decoder
 Decoder (const Dictionary *dict, const LanguageModelBase *model)
 
const Dictionarydict () const
 
const LanguageModelBasemodel () const
 
bool decode (Lattice &lattice, const SegmentGraph &graph, size_t nbest, const State &state, float max=std::numeric_limits< float >::max(), float min=-std::numeric_limits< float >::max(), size_t beamSize=beamSizeDefault, size_t frameSize=frameSizeDefault, void *helper=nullptr) const
 

Protected Member Functions

LatticeNodecreateLatticeNodeImpl (const SegmentGraphBase &graph, const LanguageModelBase *model, std::string_view word, WordIndex idx, SegmentGraphPath path, const State &state, float cost, std::unique_ptr< LatticeNodeData > data, bool onlyPath) const override
 
bool needSort (const SegmentGraph &graph, const SegmentGraphNode *node) const override
 
- Protected Member Functions inherited from libime::Decoder
LatticeNodecreateLatticeNode (const SegmentGraph &graph, const LanguageModelBase *model, std::string_view word, WordIndex idx, SegmentGraphPath path, const State &state, float cost=0, std::unique_ptr< LatticeNodeData > data=nullptr, bool onlyPath=false) const
 

Additional Inherited Members

- Static Public Attributes inherited from libime::Decoder
static constexpr const size_t beamSizeDefault = 20
 
static constexpr const size_t frameSizeDefault = 40
 

Detailed Description

Definition at line 41 of file tabledecoder.h.


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