Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'moses/RuleCubeItem.h')
-rw-r--r--moses/RuleCubeItem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/RuleCubeItem.h b/moses/RuleCubeItem.h
index 2c086f0b3..0abc905f7 100644
--- a/moses/RuleCubeItem.h
+++ b/moses/RuleCubeItem.h
@@ -53,16 +53,16 @@ public:
return m_pos+1 < m_orderedTargetPhrases.size();
}
- const boost::shared_ptr<ChartTranslationOption> &GetTargetPhrase() const {
+ const boost::shared_ptr<ChartTranslationOption> &GetTranslationOption() const {
return m_orderedTargetPhrases[m_pos];
}
bool operator<(const TranslationDimension &compare) const {
- return GetTargetPhrase() < compare.GetTargetPhrase();
+ return GetTranslationOption()->GetPhrase() < compare.GetTranslationOption()->GetPhrase();
}
bool operator==(const TranslationDimension &compare) const {
- return GetTargetPhrase() == compare.GetTargetPhrase();
+ return GetTranslationOption()->GetPhrase() == compare.GetTranslationOption()->GetPhrase();
}
private: