diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 04:24:19 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 04:24:19 +0400 |
commit | 664ffe0130e76a32571965a5f9fce1f6ff176ae1 (patch) | |
tree | 098ca4c906c675ae023d3c8d729afc675ee9e62b /mert/CderScorer.h | |
parent | 0fc56ae869a41ee77220b2468d4a0c1e2afd14aa (diff) |
Fix indentation.
Diffstat (limited to 'mert/CderScorer.h')
-rw-r--r-- | mert/CderScorer.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/mert/CderScorer.h b/mert/CderScorer.h index ed8e5da11..3b8bea8cc 100644 --- a/mert/CderScorer.h +++ b/mert/CderScorer.h @@ -9,10 +9,8 @@ #include "ScoreData.h" #include "Scorer.h" - using namespace std; - class CderScorer: public StatisticsBasedScorer { public: @@ -41,19 +39,15 @@ private: vector<vector<sent_t> > ref_sentences; vector<int> computeCD(const sent_t& cand, const sent_t& ref); - int distance(int word1, int word2) + int distance(int word1, int word2) const { - if (word1 == word2) - return 0; - else - return 1; + return word1 == word2 ? 0 : 1; } - //no copy + // no copying allowed CderScorer(const CderScorer&); ~CderScorer() {}; CderScorer& operator=(const CderScorer&); }; - #endif // __CDERSCORER_H__ |