diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-05-06 01:19:26 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-05-06 01:19:26 +0400 |
commit | 12a340f281768d86440f8e36b4fb09e55c176c18 (patch) | |
tree | eada9de63a6895acee8dd8f17af12111587bbca2 /moses | |
parent | e9a6212de179849f3d339ee18804f2bdc6f4f6ce (diff) | |
parent | c185672df7bc5589094061aa637a59343be447f1 (diff) |
Merge branch 'master' of github.com:moses-smt/mosesdecoder
Diffstat (limited to 'moses')
-rw-r--r-- | moses/src/HypothesisStack.h | 2 | ||||
-rw-r--r-- | moses/src/HypothesisStackNormal.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/moses/src/HypothesisStack.h b/moses/src/HypothesisStack.h index 784cd7a39..045773725 100644 --- a/moses/src/HypothesisStack.h +++ b/moses/src/HypothesisStack.h @@ -39,7 +39,7 @@ public: virtual float GetWorstScoreForBitmap( WordsBitmapID ) { return -std::numeric_limits<float>::infinity(); }; - virtual float GetWorstScoreForBitmap( WordsBitmap ) { + virtual float GetWorstScoreForBitmap( const WordsBitmap& ) { return -std::numeric_limits<float>::infinity(); }; diff --git a/moses/src/HypothesisStackNormal.h b/moses/src/HypothesisStackNormal.h index 6996f4003..d991ec373 100644 --- a/moses/src/HypothesisStackNormal.h +++ b/moses/src/HypothesisStackNormal.h @@ -66,7 +66,7 @@ public: return -std::numeric_limits<float>::infinity(); return m_diversityWorstScore[ id ]; } - float GetWorstScoreForBitmap( const WordsBitmap &coverage ) { + virtual float GetWorstScoreForBitmap( const WordsBitmap &coverage ) { return GetWorstScoreForBitmap( coverage.GetID() ); } |