diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-05-03 00:38:35 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-05-03 00:38:35 +0400 |
commit | 1b634488feb475bc56d353916dacb0bdf7111dcd (patch) | |
tree | 1628cf0ff5d48906e66ae7058848fe544fe763d0 /mert/CderScorer.h | |
parent | 933f25b3b201da907b2749264ff824a0913fdf2f (diff) |
Prefix a private member of mert/CderScorer with "m_".
Diffstat (limited to 'mert/CderScorer.h')
-rw-r--r-- | mert/CderScorer.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mert/CderScorer.h b/mert/CderScorer.h index 45989994a..dc6714115 100644 --- a/mert/CderScorer.h +++ b/mert/CderScorer.h @@ -8,9 +8,12 @@ using namespace std; +/** + * CderScorer class can compute both CDER and WER metric. + */ class CderScorer: public StatisticsBasedScorer { public: - explicit CderScorer(const string& config, bool longJumps = true); + explicit CderScorer(const string& config, bool allowed_long_jumps = true); ~CderScorer(); virtual void setReferenceFiles(const vector<string>& referenceFiles); @@ -24,8 +27,7 @@ class CderScorer: public StatisticsBasedScorer { virtual float calculateScore(const vector<int>& comps) const; private: - - bool longJumpsAllowed; + bool m_allowed_long_jumps; typedef vector<int> sent_t; vector<vector<sent_t> > m_ref_sentences; |