#include <NonTermContextProperty.h>
Classes | |
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< ProbStore > | m_probStores |
Definition at line 15 of file NonTermContextProperty.h.
Moses::NonTermContextProperty::NonTermContextProperty | ( | ) |
Definition at line 11 of file NonTermContextProperty.cpp.
Moses::NonTermContextProperty::~NonTermContextProperty | ( | ) |
Definition at line 15 of file NonTermContextProperty.cpp.
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().
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().
std::vector<ProbStore> Moses::NonTermContextProperty::m_probStores [protected] |
Definition at line 68 of file NonTermContextProperty.h.
Referenced by AddToMap(), GetProb(), and ProcessValue().