#include <nplm.hh>
Public Member Functions | |
Vocabulary (const nplm::vocabulary &vocab) | |
~Vocabulary () | |
WordIndex | Index (const std::string &str) const |
WordIndex | Index (const StringPiece &str) const |
lm::WordIndex | NullWord () const |
Definition at line 24 of file nplm.hh.
lm::np::Vocabulary::Vocabulary | ( | const nplm::vocabulary & | vocab | ) |
lm::np::Vocabulary::~Vocabulary | ( | ) | [virtual] |
WordIndex lm::np::Vocabulary::Index | ( | const StringPiece & | str | ) | const [inline, virtual] |
Implements lm::base::Vocabulary.
Definition at line 33 of file nplm.hh.
References StringPiece::data(), Index(), and StringPiece::size().
WordIndex lm::np::Vocabulary::Index | ( | const std::string & | str | ) | const [virtual] |
Reimplemented from lm::base::Vocabulary.
Definition at line 19 of file nplm.cc.
Referenced by Index().
lm::WordIndex lm::np::Vocabulary::NullWord | ( | ) | const [inline] |