diff options
author | Lane Schwartz <dowobeha@gmail.com> | 2016-11-12 20:31:43 +0300 |
---|---|---|
committer | Lane Schwartz <dowobeha@gmail.com> | 2016-11-12 20:31:43 +0300 |
commit | c854df84cb869d9e74b8ce1d7b47196c7b1a6949 (patch) | |
tree | 6a53d999efe88559ca94a131997a3b6dcbaea34f /moses/FF | |
parent | 988038af685e133e0d3a5408eeaa81324d9fa9de (diff) |
Add per-sentence on-demand translation model.
This translation model reads its phrase table from a TranslationTask object's ContextScope.
This data can come from, for example, a mosesserver XML-RPC client.
Diffstat (limited to 'moses/FF')
-rw-r--r-- | moses/FF/Factory.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/moses/FF/Factory.cpp b/moses/FF/Factory.cpp index a41b8cb2c..a048410d0 100644 --- a/moses/FF/Factory.cpp +++ b/moses/FF/Factory.cpp @@ -16,6 +16,7 @@ #include "moses/TranslationModel/RuleTable/PhraseDictionaryALSuffixArray.h" #include "moses/TranslationModel/ProbingPT/ProbingPT.h" #include "moses/TranslationModel/PhraseDictionaryMemoryPerSentence.h" +#include "moses/TranslationModel/PhraseDictionaryMemoryPerSentenceOnDemand.h" #include "moses/FF/LexicalReordering/LexicalReordering.h" @@ -244,6 +245,7 @@ FeatureRegistry::FeatureRegistry() MOSES_FNAME(PhraseDictionaryFuzzyMatch); MOSES_FNAME(ProbingPT); MOSES_FNAME(PhraseDictionaryMemoryPerSentence); + MOSES_FNAME(PhraseDictionaryMemoryPerSentenceOnDemand); MOSES_FNAME2("RuleTable", Syntax::RuleTableFF); MOSES_FNAME2("SyntaxInputWeight", Syntax::InputWeightFF); |