diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 15:54:20 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 15:54:20 +0400 |
commit | b19e7777ce82bdadee894ae7989b171764172c81 (patch) | |
tree | e3c04d3abee30e90737e4fc752258402feb1ddce /mert/CderScorer.cpp | |
parent | 33cea0f1dc4a249146020a0e2e07d6180ce92d69 (diff) |
Add prefix 'm_' to private and protected members in Scorer classes.
Diffstat (limited to 'mert/CderScorer.cpp')
-rw-r--r-- | mert/CderScorer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mert/CderScorer.cpp b/mert/CderScorer.cpp index 8c83ac085..c30558b29 100644 --- a/mert/CderScorer.cpp +++ b/mert/CderScorer.cpp @@ -10,7 +10,7 @@ CderScorer::~CderScorer() {} void CderScorer::setReferenceFiles(const vector<string>& referenceFiles) { //make sure reference data is clear - ref_sentences.clear(); + m_ref_sentences.clear(); //load reference data for (size_t rid = 0; rid < referenceFiles.size(); ++rid) { @@ -18,12 +18,12 @@ void CderScorer::setReferenceFiles(const vector<string>& referenceFiles) if (!refin) { throw runtime_error("Unable to open: " + referenceFiles[rid]); } - ref_sentences.push_back(vector<sent_t>()); + m_ref_sentences.push_back(vector<sent_t>()); string line; while (getline(refin,line)) { sent_t encoded; encode(line, encoded); - ref_sentences[rid].push_back(encoded); + m_ref_sentences[rid].push_back(encoded); } } } @@ -34,8 +34,8 @@ void CderScorer::prepareStatsVector(size_t sid, const string& text, vector<int>& encode(text, cand); float max = -2; - for (size_t rid = 0; rid < ref_sentences.size(); ++rid) { - sent_t& ref = ref_sentences[rid][sid]; + for (size_t rid = 0; rid < m_ref_sentences.size(); ++rid) { + sent_t& ref = m_ref_sentences[rid][sid]; vector<int> tmp = computeCD(cand, ref); if (calculateScore(tmp) > max) { stats = tmp; |