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

Public Member Functions

 PinyinDecoder (const PinyinDictionary *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
 
- 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
 
virtual bool needSort (const SegmentGraph &, const SegmentGraphNode *) 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 38 of file pinyindecoder.h.


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