libime
Public Member Functions | Static Public Attributes | Protected Member Functions | Friends | List of all members
libime::Decoder Class Reference
Inheritance diagram for libime::Decoder:
Inheritance graph
[legend]

Public Member Functions

 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
 

Static Public Attributes

static constexpr const size_t beamSizeDefault = 20
 
static constexpr const size_t frameSizeDefault = 40
 

Protected Member Functions

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
 
virtual 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
 
virtual bool needSort (const SegmentGraph &, const SegmentGraphNode *) const
 

Friends

class DecoderPrivate
 

Detailed Description

Definition at line 26 of file decoder.h.


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