Cambridge SMT System
|
This class extends EnumerateVocab in kenlm code. This class creates a grammar-integer to lm-integer hash which will be used during composition. If there is an lm wordmap available, then it uses the wordmap to synchronize. Note: The nplm wrapper does not support this functionality. More...
#include <hifst_enumerate_vocab.hpp>
Inherits EnumerateVocab.
Public Member Functions | |
HifstEnumerateVocab (IdBridge &idb, WordMapperT *wm) | |
virtual | ~HifstEnumerateVocab () |
virtual void | Add (WordIndex index, const StringPiece &str) |
void | Add (WordIndex index, const std::string &s) |
void | AddOutput (WordIndex index, const std::string &s) |
Public Attributes | |
IdBridge & | idb_ |
This class extends EnumerateVocab in kenlm code. This class creates a grammar-integer to lm-integer hash which will be used during composition. If there is an lm wordmap available, then it uses the wordmap to synchronize. Note: The nplm wrapper does not support this functionality.
Definition at line 38 of file hifst_enumerate_vocab.hpp.
|
inline |
Definition at line 45 of file hifst_enumerate_vocab.hpp.
|
inlinevirtual |
Definition at line 46 of file hifst_enumerate_vocab.hpp.
|
inlinevirtual |
Definition at line 47 of file hifst_enumerate_vocab.hpp.
|
inline |
|
inline |
Definition at line 72 of file hifst_enumerate_vocab.hpp.
IdBridge& lm::HifstEnumerateVocab< WordMapperT >::idb_ |
Definition at line 44 of file hifst_enumerate_vocab.hpp.