#include <ChartState.h>
Public Member Functions | |
LanguageModelChartState (const ChartHypothesis &hypo, int featureID, size_t order) | |
~LanguageModelChartState () | |
void | Set (float prefixScore, FFState *rightState) |
float | GetPrefixScore () const |
FFState * | GetRightContext () const |
size_t | GetNumTargetTerminals () const |
const Phrase & | GetPrefix () const |
const Phrase & | GetSuffix () const |
size_t | hash () const |
virtual bool | operator== (const FFState &o) const |
Definition at line 10 of file ChartState.h.
Moses::LanguageModelChartState::LanguageModelChartState | ( | const ChartHypothesis & | hypo, | |
int | featureID, | |||
size_t | order | |||
) | [inline] |
Definition at line 105 of file ChartState.h.
References Moses::ChartHypothesis::GetCurrTargetPhrase(), GetNumTargetTerminals(), Moses::Phrase::GetNumTerminals(), and Moses::ChartHypothesis::GetPrevHypos().
Moses::LanguageModelChartState::~LanguageModelChartState | ( | ) | [inline] |
Definition at line 121 of file ChartState.h.
size_t Moses::LanguageModelChartState::GetNumTargetTerminals | ( | ) | const [inline] |
Definition at line 137 of file ChartState.h.
Referenced by Moses::LanguageModelImplementation::EvaluateWhenApplied(), and LanguageModelChartState().
const Phrase& Moses::LanguageModelChartState::GetPrefix | ( | ) | const [inline] |
Definition at line 141 of file ChartState.h.
Referenced by Moses::LanguageModelImplementation::EvaluateWhenApplied(), hash(), and operator==().
float Moses::LanguageModelChartState::GetPrefixScore | ( | ) | const [inline] |
Definition at line 130 of file ChartState.h.
Referenced by Moses::LanguageModelImplementation::EvaluateWhenApplied().
FFState* Moses::LanguageModelChartState::GetRightContext | ( | ) | const [inline] |
Definition at line 133 of file ChartState.h.
Referenced by Moses::LanguageModelImplementation::EvaluateWhenApplied(), and operator==().
const Phrase& Moses::LanguageModelChartState::GetSuffix | ( | ) | const [inline] |
Definition at line 144 of file ChartState.h.
Referenced by Moses::LanguageModelImplementation::EvaluateWhenApplied().
size_t Moses::LanguageModelChartState::hash | ( | ) | const [inline, virtual] |
Implements Moses::FFState.
Definition at line 148 of file ChartState.h.
References Moses::ChartHypothesis::GetCurrSourceRange(), Moses::Range::GetEndPos(), Moses::ChartHypothesis::GetManager(), GetPrefix(), Moses::InputType::GetSize(), Moses::BaseManager::GetSource(), Moses::Range::GetStartPos(), Moses::FFState::hash(), and Moses::hash_value().
virtual bool Moses::LanguageModelChartState::operator== | ( | const FFState & | o | ) | const [inline, virtual] |
Implements Moses::FFState.
Definition at line 168 of file ChartState.h.
References Moses::ChartHypothesis::GetCurrSourceRange(), Moses::Range::GetEndPos(), Moses::ChartHypothesis::GetManager(), GetPrefix(), GetRightContext(), Moses::InputType::GetSize(), Moses::BaseManager::GetSource(), and Moses::Range::GetStartPos().
void Moses::LanguageModelChartState::Set | ( | float | prefixScore, | |
FFState * | rightState | |||
) | [inline] |
Definition at line 125 of file ChartState.h.
Referenced by Moses::LanguageModelImplementation::EvaluateWhenApplied().