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-04-29 22:16:52 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-04-29 22:16:52 +0300
commite4f5c691098185d55aab1ac1391f97fd6f193eef (patch)
tree5bebea3336fff44dd8cb8aa24fb7d6a3a6ea56ba /moses/Syntax
parentc76f1c338dbbc086873b729677188c2eebdb9806 (diff)
One step closer to eliminating the requirement to provide num-features=... in the config file.
Some FF (Mmsapt, LexicalReordering, Many single-value FF) provide this number during "registration"; when missing, a default weight vector of uniform 1.0 is automatically generated. This eliminates the need for the user to figure out what the exact number of features is for each FF, which can get complicated, e.g. in the case of Mmsapt/PhraseDictionaryBitextSampling.
Diffstat (limited to 'moses/Syntax')
-rw-r--r--moses/Syntax/RuleTableFF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/Syntax/RuleTableFF.cpp b/moses/Syntax/RuleTableFF.cpp
index 37063e048..dd24493f0 100644
--- a/moses/Syntax/RuleTableFF.cpp
+++ b/moses/Syntax/RuleTableFF.cpp
@@ -17,7 +17,7 @@ namespace Syntax
std::vector<RuleTableFF*> RuleTableFF::s_instances;
RuleTableFF::RuleTableFF(const std::string &line)
- : PhraseDictionary(line)
+ : PhraseDictionary(line, true)
{
ReadParameters();
// caching for memory pt is pointless