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:
authorTetsuo Kiso <tetsuo-s@is.naist.jp>2012-02-17 03:25:18 +0400
committerTetsuo Kiso <tetsuo-s@is.naist.jp>2012-02-17 03:25:18 +0400
commitc5e7e4cea7420d1cae4bea9ed7dc50613902f0b3 (patch)
treeece78935d933962ea9d9dcdc191609c77c52dbce /mert/mert.cpp
parent47b535ee0ad7f470904729c5b68d7aa267c35403 (diff)
Bug fix mert: when you want to optimize fewer features.
This commit is a temporary bug fix.
Diffstat (limited to 'mert/mert.cpp')
-rwxr-xr-xmert/mert.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/mert/mert.cpp b/mert/mert.cpp
index 58214f30b..e47f2e6c1 100755
--- a/mert/mert.cpp
+++ b/mert/mert.cpp
@@ -370,6 +370,9 @@ int main(int argc, char **argv)
to_optimize.push_back(index);
} else {
cerr << "Index " << index << " is out of bounds. Allowed indexes are [0," << option.pdim - 1 << "]." << endl;
+
+ // Note: this is temporary bug fix.
+ to_optimize.push_back(index);
}
}
} else {