Moses::Model1LexicalTable Class Reference

#include <Model1Feature.h>

List of all members.

Public Member Functions

 Model1LexicalTable (float floor=1e-7)
void Load (const std::string &fileName, const Model1Vocabulary &vcbS, const Model1Vocabulary &vcbT)
float GetProbability (const Factor *wordS, const Factor *wordT) const

Protected Attributes

boost::unordered_map< const
Factor *, boost::unordered_map
< const Factor *, float > > 
const float m_floor

Detailed Description

Definition at line 38 of file Model1Feature.h.

Constructor & Destructor Documentation

Moses::Model1LexicalTable::Model1LexicalTable ( float  floor = 1e-7  )  [inline]

Definition at line 41 of file Model1Feature.h.

Member Function Documentation

float Moses::Model1LexicalTable::GetProbability ( const Factor wordS,
const Factor wordT 
) const

Definition at line 122 of file Model1Feature.cpp.

References m_floor, m_ltable, and prob().

Referenced by Moses::Model1Feature::EvaluateWithSourceContext().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::Model1LexicalTable::Load ( const std::string &  fileName,
const Model1Vocabulary vcbS,
const Model1Vocabulary vcbT 

Definition at line 98 of file Model1Feature.cpp.

References Moses::InputFileStream::Close(), Moses::Model1Vocabulary::GetWord(), m_ltable, NULL, prob(), Moses::Tokenize(), and UTIL_THROW_IF2.

Here is the call graph for this function:

Member Data Documentation

const float Moses::Model1LexicalTable::m_floor [protected]

Definition at line 51 of file Model1Feature.h.

Referenced by GetProbability().

boost::unordered_map< const Factor*, boost::unordered_map< const Factor*, float > > Moses::Model1LexicalTable::m_ltable [protected]

Definition at line 50 of file Model1Feature.h.

Referenced by GetProbability(), and Load().

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

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