#include <SourceLabelsPhraseProperty.h>
Public Member Functions | |
SourceLabelsPhraseProperty () | |
virtual void | ProcessValue (const std::string &value) |
size_t | GetNumberOfNonTerminals () const |
float | GetTotalCount () const |
const std::list < SourceLabelsPhrasePropertyItem > & | GetSourceLabelItems () const |
virtual const std::string * | GetValueString () const |
Protected Attributes | |
size_t | m_nNTs |
float | m_totalCount |
std::list < SourceLabelsPhrasePropertyItem > | m_sourceLabelItems |
Definition at line 41 of file SourceLabelsPhraseProperty.h.
Moses::SourceLabelsPhraseProperty::SourceLabelsPhraseProperty | ( | ) | [inline] |
Definition at line 44 of file SourceLabelsPhraseProperty.h.
size_t Moses::SourceLabelsPhraseProperty::GetNumberOfNonTerminals | ( | ) | const [inline] |
Definition at line 48 of file SourceLabelsPhraseProperty.h.
References m_nNTs.
Referenced by Moses::SoftSourceSyntacticConstraintsFeature::EvaluateWithSourceContext().
const std::list<SourceLabelsPhrasePropertyItem>& Moses::SourceLabelsPhraseProperty::GetSourceLabelItems | ( | ) | const [inline] |
Definition at line 56 of file SourceLabelsPhraseProperty.h.
References m_sourceLabelItems.
Referenced by Moses::SoftSourceSyntacticConstraintsFeature::EvaluateWithSourceContext().
float Moses::SourceLabelsPhraseProperty::GetTotalCount | ( | ) | const [inline] |
Definition at line 52 of file SourceLabelsPhraseProperty.h.
References m_totalCount.
Referenced by Moses::SoftSourceSyntacticConstraintsFeature::EvaluateWithSourceContext().
virtual const std::string* Moses::SourceLabelsPhraseProperty::GetValueString | ( | ) | const [inline, virtual] |
Reimplemented from Moses::PhraseProperty.
Definition at line 60 of file SourceLabelsPhraseProperty.h.
References NULL, and UTIL_THROW2.
void Moses::SourceLabelsPhraseProperty::ProcessValue | ( | const std::string & | value | ) | [virtual] |
Reimplemented from Moses::PhraseProperty.
Definition at line 14 of file SourceLabelsPhraseProperty.cpp.
References begin, EOF, m_nNTs, m_sourceLabelItems, m_totalCount, and UTIL_THROW2.
size_t Moses::SourceLabelsPhraseProperty::m_nNTs [protected] |
Definition at line 63 of file SourceLabelsPhraseProperty.h.
Referenced by GetNumberOfNonTerminals(), and ProcessValue().
std::list<SourceLabelsPhrasePropertyItem> Moses::SourceLabelsPhraseProperty::m_sourceLabelItems [protected] |
Definition at line 70 of file SourceLabelsPhraseProperty.h.
Referenced by GetSourceLabelItems(), and ProcessValue().
float Moses::SourceLabelsPhraseProperty::m_totalCount [protected] |
Definition at line 68 of file SourceLabelsPhraseProperty.h.
Referenced by GetTotalCount(), and ProcessValue().