diff options
author | hieu <hieu@hieu-Precision-WorkStation-T3400.(none)> | 2012-12-16 22:29:53 +0400 |
---|---|---|
committer | hieu <hieu@hieu-Precision-WorkStation-T3400.(none)> | 2012-12-16 22:29:53 +0400 |
commit | 05045d574cff3cf56c322bcd6e088d173beb6a7d (patch) | |
tree | c3592097f9d83bc782a50a8312b95c8d9149b7b3 /mert/Data.cpp | |
parent | afab4de901c4643f2b5cd70710a2b4b123be1c0f (diff) |
don't display unknown weight penalty when showing weight, don't usually tune. Also, change delimiter in mert extractor from : to =
Diffstat (limited to 'mert/Data.cpp')
-rw-r--r-- | mert/Data.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mert/Data.cpp b/mert/Data.cpp index bbc8827cb..3f91c1376 100644 --- a/mert/Data.cpp +++ b/mert/Data.cpp @@ -213,7 +213,7 @@ void Data::InitFeatureMap(const string& str) { getNextPound(buf, substr); // string ending with ":" are skipped, because they are the names of the features - if (!EndsWith(substr, ":")) { + if (!EndsWith(substr, "=")) { stringstream ss; ss << tmp_name << "_" << tmp_index << " "; features.append(ss.str()); @@ -241,7 +241,7 @@ void Data::AddFeatures(const string& str, getNextPound(buf, substr); // no ':' -> feature value that needs to be stored - if (!EndsWith(substr, ":")) { + if (!EndsWith(substr, "=")) { feature_entry.add(ConvertStringToFeatureStatsType(substr)); } else if (substr.find("_") != string::npos) { // sparse feature name? store as well |