diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-06 22:06:30 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-06 22:06:30 +0000 |
commit | 2a07cb6dba14931d3b29dd9a237e2838d63684c0 (patch) | |
tree | d4fc100cae67a0c3a9cded7fd677c9b54cd3df4a /vest | |
parent | 0c3f2babc8c96a3d35b218f3767841f2d5d448d1 (diff) |
warnings
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@168 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest')
-rw-r--r-- | vest/scorer.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vest/scorer.cc b/vest/scorer.cc index 53a17917..6c604ab8 100644 --- a/vest/scorer.cc +++ b/vest/scorer.cc @@ -226,7 +226,7 @@ class IBM_BLEUScorer : public BLEUScorerBase { int n=4) : BLEUScorerBase(references, n), lengths_(references.size()) { for (int i=0; i < references.size(); ++i) lengths_[i] = references[i].size(); - } + } protected: float ComputeRefLength(const vector<WordID>& hyp) const { if (lengths_.size() == 1) return lengths_[0]; @@ -256,7 +256,7 @@ class NIST_BLEUScorer : public BLEUScorerBase { shortest_ = references[i].size(); } protected: - float ComputeRefLength(const vector<WordID>& hyp) const { + float ComputeRefLength(const vector<WordID>& /* hyp */) const { return shortest_; } private: @@ -273,7 +273,7 @@ class Koehn_BLEUScorer : public BLEUScorerBase { avg_ /= references.size(); } protected: - float ComputeRefLength(const vector<WordID>& hyp) const { + float ComputeRefLength(const vector<WordID>& /* hyp */) const { return avg_; } private: @@ -465,7 +465,7 @@ BLEUScorerBase::BLEUScorerBase(const vector<vector<WordID> >& references, CountRef(*ci); } } - + Score* BLEUScorerBase::ScoreCandidate(const vector<WordID>& hyp) const { BLEUScore* bs = new BLEUScore(n_); for (NGramCountMap::iterator i=ngrams_.begin(); i != ngrams_.end(); ++i) @@ -510,7 +510,7 @@ DocScorer::DocScorer( if (!expect_eof) { assert(i == 0); expect_eof = true; - } + } break; } } else { |