Public Member Functions | |
HypothesisScoreOrdererWithDistortion (const Range *transOptRange, const bool deterministic=false) | |
bool | operator() (const Hypothesis *hypoA, const Hypothesis *hypoB) const |
Public Attributes | |
const Range * | m_transOptRange |
float | m_totalWeightDistortion |
Definition at line 52 of file BitmapContainer.cpp.
Moses::HypothesisScoreOrdererWithDistortion::HypothesisScoreOrdererWithDistortion | ( | const Range * | transOptRange, | |
const bool | deterministic = false | |||
) | [inline] |
Definition at line 58 of file BitmapContainer.cpp.
References Moses::StaticData::GetAllWeights(), Moses::DistortionScoreProducer::GetDistortionFeatureFunctions(), Moses::ScoreComponentCollection::GetScoreForProducer(), Moses::StaticData::Instance(), and m_totalWeightDistortion.
bool Moses::HypothesisScoreOrdererWithDistortion::operator() | ( | const Hypothesis * | hypoA, | |
const Hypothesis * | hypoB | |||
) | const [inline] |
Definition at line 78 of file BitmapContainer.cpp.
References Moses::DistortionScoreProducer::CalculateDistortionScore(), Moses::Phrase::Compare(), Moses::Hypothesis::GetCurrSourceWordsRange(), Moses::Hypothesis::GetCurrTargetPhrase(), Moses::Bitmap::GetFirstGapPos(), Moses::Hypothesis::GetScore(), Moses::Hypothesis::GetWordsBitmap(), m_totalWeightDistortion, m_transOptRange, NULL, and UTIL_THROW_IF2.
Definition at line 76 of file BitmapContainer.cpp.
Referenced by HypothesisScoreOrdererWithDistortion(), and operator()().