lm::vocab::Multiple Class Reference

#include <vocab.hh>

List of all members.

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


Detailed Description

Definition at line 79 of file vocab.hh.


Member Typedef Documentation

typedef boost::unordered_map<std::string, std::vector<unsigned int> > lm::vocab::Multiple::Words

Definition at line 81 of file vocab.hh.


Constructor & Destructor Documentation

lm::vocab::Multiple::Multiple ( const Words vocabs  )  [inline]

Definition at line 83 of file vocab.hh.


Member Function Documentation

template<class Output >
void lm::vocab::Multiple::AddNGram ( const StringPiece ngram,
const StringPiece line,
Output &  output 
) [inline]

Definition at line 118 of file vocab.hh.

References AddNGram().

Here is the call graph for this function:

template<class Iterator , class Output >
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().

Here is the call graph for this function:

Here is the caller graph for this function:

void lm::vocab::Multiple::Flush (  )  const [inline]

Definition at line 122 of file vocab.hh.


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

Generated on Thu Jul 6 00:32:49 2017 for Moses by  doxygen 1.5.9