diff options
author | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-05-11 02:34:24 +0300 |
---|---|---|
committer | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-05-11 02:34:24 +0300 |
commit | 7da7ce52dab34fda4f2fcae2b37a7696eb773b2c (patch) | |
tree | 05e607e4d26e2dbb819a2214eb16406cace77500 /moses/ExportInterface.cpp | |
parent | db5ccff364508f9348b2d20d6ac57bc9da38bedf (diff) |
Added context buffering in IOWrapper for context-sensitive decoding.
Unfortunately, this seems to slow things down quite a bit.
Diffstat (limited to 'moses/ExportInterface.cpp')
-rw-r--r-- | moses/ExportInterface.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/moses/ExportInterface.cpp b/moses/ExportInterface.cpp index 342e6dc7a..790196edd 100644 --- a/moses/ExportInterface.cpp +++ b/moses/ExportInterface.cpp @@ -228,7 +228,9 @@ batch_run() // set up task of translating one sentence boost::shared_ptr<TranslationTask> task = TranslationTask::create(source, ioWrapper); - task->SetContextString(context_string); + if (source->GetContext()) + task->SetContextString(*source->GetContext()); + else task->SetContextString(context_string); // Allow for (sentence-)context-specific processing prior to // decoding. This can be used, for example, for context-sensitive |