Moses::GenerationDictionary Class Reference

#include <GenerationDictionary.h>

Inheritance diagram for Moses::GenerationDictionary:

Inheritance graph
Collaboration diagram for Moses::GenerationDictionary:

Collaboration graph

List of all members.

Public Member Functions

 GenerationDictionary (const std::string &line)
virtual ~GenerationDictionary ()
void Load (AllOptions::ptr const &opts)
 load data file
size_t GetSize () const
const OutputWordCollectionFindWord (const Word &word) const
void SetParameter (const std::string &key, const std::string &value)

Static Public Member Functions

static const std::vector
< GenerationDictionary * > & 
GetColl ()

Protected Attributes

Collection m_collection
std::string m_filePath

Static Protected Attributes

static std::vector
< GenerationDictionary * > 

Detailed Description

Implementation of a generation table in a trie.

Definition at line 45 of file GenerationDictionary.h.

Constructor & Destructor Documentation

Moses::GenerationDictionary::GenerationDictionary ( const std::string &  line  ) 

Definition at line 39 of file GenerationDictionary.cpp.

References Moses::FeatureFunction::ReadParameters(), and s_staticColl.

Here is the call graph for this function:

Moses::GenerationDictionary::~GenerationDictionary (  )  [virtual]

Definition at line 111 of file GenerationDictionary.cpp.

References m_collection.

Member Function Documentation

const OutputWordCollection * Moses::GenerationDictionary::FindWord ( const Word word  )  const

returns a bag of output words, OutputWordCollection, for a particular input word. Or NULL if the input word isn't found. The search function used is the WordComparer functor

Definition at line 119 of file GenerationDictionary.cpp.

References Moses::DecodeFeature::GetInput(), m_collection, and NULL.

Referenced by Moses::DecodeStepGeneration::Process().

Here is the call graph for this function:

Here is the caller graph for this function:

static const std::vector<GenerationDictionary*>& Moses::GenerationDictionary::GetColl (  )  [inline, static]

Definition at line 57 of file GenerationDictionary.h.

References s_staticColl.

size_t Moses::GenerationDictionary::GetSize (  )  const [inline]

number of unique input entries in the generation table. NOT the number of lines in the generation table

Definition at line 70 of file GenerationDictionary.h.

References m_collection.

void Moses::GenerationDictionary::Load ( AllOptions::ptr const &  opts  )  [virtual]

void Moses::GenerationDictionary::SetParameter ( const std::string &  key,
const std::string &  value 
) [virtual]

Reimplemented from Moses::DecodeFeature.

Definition at line 140 of file GenerationDictionary.cpp.

References m_filePath.

Member Data Documentation

Definition at line 51 of file GenerationDictionary.h.

Referenced by FindWord(), GetSize(), Load(), and ~GenerationDictionary().

std::string Moses::GenerationDictionary::m_filePath [protected]

Definition at line 54 of file GenerationDictionary.h.

Referenced by Load(), and SetParameter().

< all the score producers in this run

Reimplemented from Moses::FeatureFunction.

Definition at line 49 of file GenerationDictionary.h.

Referenced by GenerationDictionary(), and GetColl().

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

Generated on Thu Jul 6 00:33:16 2017 for Moses by  doxygen 1.5.9