Moses::NonTermContextProperty Class Reference

#include <NonTermContextProperty.h>

Inheritance diagram for Moses::NonTermContextProperty:

Inheritance graph
Collaboration diagram for Moses::NonTermContextProperty:

Collaboration graph

List of all members.


class  ProbStore

Public Member Functions

 NonTermContextProperty ()
 ~NonTermContextProperty ()
virtual void ProcessValue (const std::string &value)
virtual const std::string * GetValueString () const
float GetProb (size_t ntInd, size_t contextInd, const Factor *factor, float smoothConstant) const

Protected Member Functions

void AddToMap (size_t ntIndex, size_t index, const Factor *factor, float count)

Protected Attributes

std::vector< ProbStorem_probStores

Detailed Description

Definition at line 15 of file NonTermContextProperty.h.

Constructor & Destructor Documentation

Moses::NonTermContextProperty::NonTermContextProperty (  ) 

Definition at line 11 of file NonTermContextProperty.cpp.

Moses::NonTermContextProperty::~NonTermContextProperty (  ) 

Definition at line 15 of file NonTermContextProperty.cpp.

Member Function Documentation

void Moses::NonTermContextProperty::AddToMap ( size_t  ntIndex,
size_t  index,
const Factor factor,
float  count 
) [protected]

Definition at line 61 of file NonTermContextProperty.cpp.

References Moses::NonTermContextProperty::ProbStore::AddToMap(), and m_probStores.

Referenced by ProcessValue().

Here is the call graph for this function:

Here is the caller graph for this function:

float Moses::NonTermContextProperty::GetProb ( size_t  ntInd,
size_t  contextInd,
const Factor factor,
float  smoothConstant 
) const

Definition at line 71 of file NonTermContextProperty.cpp.

References m_probStores, and UTIL_THROW_IF2.

virtual const std::string* Moses::NonTermContextProperty::GetValueString (  )  const [inline, virtual]

Reimplemented from Moses::PhraseProperty.

Definition at line 24 of file NonTermContextProperty.h.

References NULL, and UTIL_THROW2.

void Moses::NonTermContextProperty::ProcessValue ( const std::string &  value  )  [virtual]

Reimplemented from Moses::PhraseProperty.

Definition at line 20 of file NonTermContextProperty.cpp.

References Moses::FactorCollection::AddFactor(), AddToMap(), count, Moses::FactorCollection::Instance(), m_probStores, and Moses::Tokenize().

Here is the call graph for this function:

Member Data Documentation

Definition at line 68 of file NonTermContextProperty.h.

Referenced by AddToMap(), GetProb(), and ProcessValue().

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

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