Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhieu <hieu@hieu-Precision-WorkStation-T3400.(none)>2012-12-16 22:29:53 +0400
committerhieu <hieu@hieu-Precision-WorkStation-T3400.(none)>2012-12-16 22:29:53 +0400
commit05045d574cff3cf56c322bcd6e088d173beb6a7d (patch)
treec3592097f9d83bc782a50a8312b95c8d9149b7b3 /mert/Data.cpp
parentafab4de901c4643f2b5cd70710a2b4b123be1c0f (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.cpp4
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