diff options
author | Chris Dyer <cdyer@Chriss-MacBook-Air.local> | 2013-11-10 13:22:23 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@Chriss-MacBook-Air.local> | 2013-11-10 13:22:23 -0500 |
commit | 10992003895a0c89e00033c8e20fdebb90ea8f77 (patch) | |
tree | 5d97061ef67d9dcf8d72d3d85147be85abe3ef27 /mteval/scorer.cc | |
parent | 43571516d8ba27599bd8ed58944d06715ea8533d (diff) |
fix for mavericks
Diffstat (limited to 'mteval/scorer.cc')
-rw-r--r-- | mteval/scorer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mteval/scorer.cc b/mteval/scorer.cc index 9eb9a76e..fedbca91 100644 --- a/mteval/scorer.cc +++ b/mteval/scorer.cc @@ -198,7 +198,7 @@ class BLEUScorerBase : public SentenceScorer { virtual float ComputeRefLength(const vector<WordID>& hyp) const = 0; private: struct NGramCompare { - int operator() (const vector<WordID>& a, const vector<WordID>& b) { + int operator() (const vector<WordID>& a, const vector<WordID>& b) const { size_t as = a.size(); size_t bs = b.size(); const size_t s = (as < bs ? as : bs); |