#include <TargetNgramFeature.h>
Public Member Functions | |
TargetNgramChartState (const ChartHypothesis &hypo, int featureId, size_t order) | |
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 37 of file TargetNgramFeature.h.
Moses::TargetNgramChartState::TargetNgramChartState | ( | const ChartHypothesis & | hypo, | |
int | featureId, | |||
size_t | order | |||
) | [inline] |
Definition at line 131 of file TargetNgramFeature.h.
References Moses::ChartHypothesis::GetCurrSourceRange(), Moses::ChartHypothesis::GetCurrTargetPhrase(), Moses::Range::GetEndPos(), Moses::ChartHypothesis::GetManager(), GetNumTargetTerminals(), Moses::Phrase::GetNumTerminals(), Moses::ChartHypothesis::GetPrevHypos(), Moses::InputType::GetSize(), Moses::BaseManager::GetSource(), Moses::Range::GetStartPos(), and range.
size_t Moses::TargetNgramChartState::GetNumTargetTerminals | ( | ) | const [inline] |
Definition at line 150 of file TargetNgramFeature.h.
Referenced by Moses::TargetNgramFeature::EvaluateWhenApplied(), and TargetNgramChartState().
const Phrase& Moses::TargetNgramChartState::GetPrefix | ( | ) | const [inline] |
Definition at line 154 of file TargetNgramFeature.h.
Referenced by Moses::TargetNgramFeature::EvaluateWhenApplied(), hash(), and operator==().
const Phrase& Moses::TargetNgramChartState::GetSuffix | ( | ) | const [inline] |
Definition at line 157 of file TargetNgramFeature.h.
Referenced by Moses::TargetNgramFeature::EvaluateWhenApplied(), hash(), and operator==().
size_t Moses::TargetNgramChartState::hash | ( | ) | const [inline, virtual] |
Implements Moses::FFState.
Definition at line 161 of file TargetNgramFeature.h.
References GetPrefix(), GetSuffix(), and Moses::hash_value().
virtual bool Moses::TargetNgramChartState::operator== | ( | const FFState & | o | ) | const [inline, virtual] |
Implements Moses::FFState.
Definition at line 180 of file TargetNgramFeature.h.
References GetPrefix(), and GetSuffix().