MosesTraining::Vocabulary Class Reference

#include <tables-core.h>

List of all members.

Public Member Functions

WORD_ID storeIfNew (const WORD &)
WORD_ID getWordID (const WORD &)
WORDgetWord (const WORD_ID id)

Public Attributes

std::map< WORD, WORD_IDlookup
std::vector< WORDvocab


Detailed Description

Definition at line 21 of file tables-core.h.


Member Function Documentation

WORD& MosesTraining::Vocabulary::getWord ( const WORD_ID  id  )  [inline]

WORD_ID MosesTraining::Vocabulary::getWordID ( const WORD word  ) 

Definition at line 27 of file tables-core.cpp.

References lookup.

Referenced by computeLexicalTranslation().

Here is the caller graph for this function:

WORD_ID MosesTraining::Vocabulary::storeIfNew ( const WORD word  ) 

Definition at line 14 of file tables-core.cpp.

References lookup, and vocab.

Referenced by MosesTraining::LexicalTable::load(), and processLine().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 24 of file tables-core.h.

Referenced by getWordID(), and storeIfNew().

Definition at line 25 of file tables-core.h.

Referenced by getWord(), and storeIfNew().


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

Generated on Thu Jul 6 00:34:08 2017 for Moses by  doxygen 1.5.9