libime
Public Member Functions | List of all members
libime::LanguageModelBase Class Referenceabstract
Inheritance diagram for libime::LanguageModelBase:
Inheritance graph
[legend]

Public Member Functions

virtual WordIndex beginSentence () const =0
 
virtual WordIndex endSentence () const =0
 
virtual WordIndex unknown () const =0
 
virtual const State & beginState () const =0
 
virtual const State & nullState () const =0
 
virtual WordIndex index (std::string_view view) const =0
 
virtual float score (const State &state, const WordNode &word, State &out) const =0
 
virtual bool isUnknown (WordIndex idx, std::string_view view) const =0
 
bool isNodeUnknown (const LatticeNode &node) const
 
float singleWordScore (std::string_view word) const
 
float singleWordScore (const State &state, std::string_view word) const
 
float wordsScore (const State &state, const std::vector< std::string_view > &word) const
 

Detailed Description

Definition at line 33 of file languagemodel.h.


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