diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 05:58:14 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 05:58:14 +0400 |
commit | 54b3b846c7591c8e4b8443740e5f611297959ed7 (patch) | |
tree | 5a5ef4e3a7c8750ab474fafa60453904d576db47 /mert/CderScorer.cpp | |
parent | 00b8c6d76895fb90ef4c8679f9337dafe9633019 (diff) |
Add const member functions in Scorer classes.
Diffstat (limited to 'mert/CderScorer.cpp')
-rw-r--r-- | mert/CderScorer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mert/CderScorer.cpp b/mert/CderScorer.cpp index 9ac38021b..e503eb7e5 100644 --- a/mert/CderScorer.cpp +++ b/mert/CderScorer.cpp @@ -55,7 +55,7 @@ float CderScorer::calculateScore(const vector<int>& comps) const return 1 - (comps[0] / (float) comps[1]); } -vector<int> CderScorer::computeCD(const sent_t& cand, const sent_t& ref) +vector<int> CderScorer::computeCD(const sent_t& cand, const sent_t& ref) const { int I = cand.size() + 1; // Number of inter-words positions in candidate sentence int L = ref.size() + 1; // Number of inter-words positions in reference sentence |