#include <vocab.hh>
Classes | |
class | Callback |
Public Types | |
typedef boost::unordered_map < std::string, std::vector < unsigned int > > | Words |
Public Member Functions | |
Multiple (const Words &vocabs) | |
template<class Iterator , class Output > | |
void | AddNGram (const Iterator &begin, const Iterator &end, const StringPiece &line, Output &output) |
template<class Output > | |
void | AddNGram (const StringPiece &ngram, const StringPiece &line, Output &output) |
void | Flush () const |
Definition at line 79 of file vocab.hh.
typedef boost::unordered_map<std::string, std::vector<unsigned int> > lm::vocab::Multiple::Words |
lm::vocab::Multiple::Multiple | ( | const Words & | vocabs | ) | [inline] |
void lm::vocab::Multiple::AddNGram | ( | const StringPiece & | ngram, | |
const StringPiece & | line, | |||
Output & | output | |||
) | [inline] |
Definition at line 118 of file vocab.hh.
References AddNGram().
void lm::vocab::Multiple::AddNGram | ( | const Iterator & | begin, | |
const Iterator & | end, | |||
const StringPiece & | line, | |||
Output & | output | |||
) | [inline] |
Definition at line 101 of file vocab.hh.
References util::AllIntersection(), FindStringPiece(), and lm::vocab::IsTag().
Referenced by AddNGram().