tmmt::Vocabulary Class Reference

#include <Vocabulary.h>

List of all members.

Public Member Functions

WORD_ID StoreIfNew (const WORD &)
WORD_ID GetWordID (const WORD &)
std::vector< WORD_IDTokenize (const char[])
WORDGetWord (WORD_ID id) const

Public Attributes

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

Detailed Description

Definition at line 23 of file Vocabulary.h.

Member Function Documentation

WORD& tmmt::Vocabulary::GetWord ( WORD_ID  id  )  const [inline]

Definition at line 31 of file Vocabulary.h.

References vocab.

Referenced by tmmt::SuffixArray::CompareWord(), tmmt::SentenceAlignment::getTargetString(), and tmmt::FuzzyMatchWrapper::letter_sed().

Here is the caller graph for this function:

WORD_ID tmmt::Vocabulary::GetWordID ( const WORD word  ) 

Definition at line 58 of file Vocabulary.cpp.

References lookup.

WORD_ID tmmt::Vocabulary::StoreIfNew ( const WORD word  ) 

Definition at line 35 of file Vocabulary.cpp.

References lookup, and vocab.

Referenced by Tokenize().

Here is the caller graph for this function:

vector< WORD_ID > tmmt::Vocabulary::Tokenize ( const char  input[]  ) 

Definition at line 13 of file Vocabulary.cpp.

References StoreIfNew().

Here is the call graph for this function:

Member Data Documentation

Definition at line 26 of file Vocabulary.h.

Referenced by GetWordID(), and StoreIfNew().

std::vector< WORD > tmmt::Vocabulary::vocab

Definition at line 27 of file Vocabulary.h.

Referenced by GetWord(), and StoreIfNew().

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

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