diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 17:04:22 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 17:04:22 +0400 |
commit | 3d70b2e1a5d66a6387b3b4fd023fc3bed2bb28a8 (patch) | |
tree | 190e42b3561f56207082a42d2fc28dd964e61154 /mert/evaluator.cpp | |
parent | eecfb171da01a090aed40317ebd8dcebdee9e57c (diff) |
Small change: modify initialization of the Data class.
Diffstat (limited to 'mert/evaluator.cpp')
-rw-r--r-- | mert/evaluator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mert/evaluator.cpp b/mert/evaluator.cpp index c0c10f444..8545f086a 100644 --- a/mert/evaluator.cpp +++ b/mert/evaluator.cpp @@ -156,6 +156,7 @@ void evaluate(const string& candFile) vector<float> scores; for (int i = 0; i < bootstrap; ++i) { + // TODO: Use smart pointer for exceptional-safety. ScoreData* scoredata = new ScoreData(*scorer); for (int j = 0; j < n; ++j) { @@ -179,6 +180,7 @@ void evaluate(const string& candFile) } else { + // TODO: Use smart pointer for exceptional-safety. ScoreData* scoredata = new ScoreData(*scorer); for (int sid = 0; sid < n; ++sid) { |