diff options
author | Barry Haddow <barry.haddow@gmail.com> | 2012-02-08 21:11:56 +0400 |
---|---|---|
committer | Barry Haddow <barry.haddow@gmail.com> | 2012-02-08 21:11:56 +0400 |
commit | 62d7d034bb7915d3cdccc6572f3e4b8e8419cd54 (patch) | |
tree | f3a686df5b2b8ed6a39c1663a55a22146c6b3e20 /mert/Data.cpp | |
parent | d742341176028a968c2591b1856f5439cdbe7fc5 (diff) |
Fix sharding bug
Diffstat (limited to 'mert/Data.cpp')
-rw-r--r-- | mert/Data.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/mert/Data.cpp b/mert/Data.cpp index 3e723f8be..a4e6c2b24 100644 --- a/mert/Data.cpp +++ b/mert/Data.cpp @@ -21,8 +21,8 @@ Data::Data() : theScorer(NULL), number_of_scores(0), _sparse_flag(false), - scoredata(NULL), - featdata(NULL) {} + scoredata(), + featdata() {} Data::Data(Scorer& ptr) : theScorer(&ptr), @@ -36,17 +36,6 @@ Data::Data(Scorer& ptr) TRACE_ERR("Data::Scorer type from Scorer: " << theScorer->getName() << endl); } -Data::~Data() { - if (featdata) { - delete featdata; - featdata = NULL; - } - if (scoredata) { - delete scoredata; - scoredata = NULL; - } -} - //ADDED BY TS void Data::remove_duplicates() { @@ -128,7 +117,6 @@ void Data::remove_duplicates() { // } } - std::cerr << "removed " << nRemoved << "/" << feat_array.size() << std::endl; if (nRemoved > 0) { |