lm::vocab Namespace Reference


Classes

class  Single
class  Union
class  Multiple

Functions

void ReadSingle (std::istream &in, boost::unordered_set< std::string > &out)
unsigned int ReadMultiple (std::istream &in, boost::unordered_map< std::string, std::vector< unsigned int > > &out)
bool IsTag (const StringPiece &value)

Function Documentation

bool lm::vocab::IsTag ( const StringPiece value  )  [inline]

Definition at line 31 of file vocab.hh.

References StringPiece::data(), StringPiece::empty(), and StringPiece::size().

Referenced by lm::vocab::Multiple::AddNGram(), lm::vocab::Union::PassNGram(), and lm::vocab::Single::PassNGram().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int lm::vocab::ReadMultiple ( std::istream &  in,
boost::unordered_map< std::string, std::vector< unsigned int > > &  out 
)

Definition at line 34 of file vocab.cc.

void lm::vocab::ReadSingle ( std::istream &  in,
boost::unordered_set< std::string > &  out 
)

Definition at line 11 of file vocab.cc.


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