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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-10-31 15:50:52 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-10-31 15:50:52 +0300
commit324c378f7fc54f02a8ea264915d3eade867ff23d (patch)
tree2bb934fee448845b0524427d437c871e7118ac2c /moses/Parameter.cpp
parentdc8ad899454bd82408c6a371d5f50e497ede0caa (diff)
Options refactoring. Moses crashed in server mode when asked to provide n-best translations with scores.
Diffstat (limited to 'moses/Parameter.cpp')
-rw-r--r--moses/Parameter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/moses/Parameter.cpp b/moses/Parameter.cpp
index f6058cbd8..206f15e50 100644
--- a/moses/Parameter.cpp
+++ b/moses/Parameter.cpp
@@ -1620,6 +1620,13 @@ SetParameter<bool>(bool &parameter, std::string const& parameterName,
}
}
+void
+Parameter::
+SetParameter(bool& var, std::string const& name)
+{
+ SetParameter(var,name,false);
+}
+
} // namespace