diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-25 13:14:00 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-25 13:14:00 +0400 |
commit | 0c9023abc6c231e96cd11cc15502f0e1353fec2a (patch) | |
tree | 29303814fbc80dab68437c2409a184d0167d33b0 /mert/BleuScorer.h | |
parent | 92c02da93fe0b22e4948b75ed96ea7b3bce6ea40 (diff) |
Clean up commented out code snippets for debugging purposes.
Diffstat (limited to 'mert/BleuScorer.h')
-rw-r--r-- | mert/BleuScorer.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/mert/BleuScorer.h b/mert/BleuScorer.h index 9875b9c52..68c485684 100644 --- a/mert/BleuScorer.h +++ b/mert/BleuScorer.h @@ -24,16 +24,13 @@ public: virtual void setReferenceFiles(const vector<string>& referenceFiles); virtual void prepareStats(size_t sid, const string& text, ScoreStats& entry); virtual float calculateScore(const vector<int>& comps) const; - - virtual size_t NumberOfScores() const { - return 2 * kLENGTH + 1; - } + virtual size_t NumberOfScores() const { return 2 * kLENGTH + 1; } private: enum ReferenceLengthType { AVERAGE, SHORTEST, - CLOSEST, + CLOSEST }; //Used to construct the ngram map @@ -44,16 +41,14 @@ private: const size_t bs = b.size(); for (i = 0; i < as && i < bs; ++i) { if (a[i] < b[i]) { - //cerr << "true" << endl; return true; } if (a[i] > b[i]) { - //cerr << "false" << endl; return false; } } //entries are equal, shortest wins - return as < bs;; + return as < bs; } }; |