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:
authorHieu Hoang <hieuhoang@gmail.com>2015-11-03 22:00:58 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-11-03 22:00:58 +0300
commit9b56e63d5194a33b54b74c8e7a119c126e0c0a78 (patch)
treee5272c443ffb1d900dcd218c2722ba69f5e625dd /moses/ExportInterface.cpp
parent6be932c1f75a9ca171336a253f0f64659a30fa1a (diff)
eclipse. And more #ifdef HAVE_XMLRPC_C
Diffstat (limited to 'moses/ExportInterface.cpp')
-rw-r--r--moses/ExportInterface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/moses/ExportInterface.cpp b/moses/ExportInterface.cpp
index 5acb90a92..216eba335 100644
--- a/moses/ExportInterface.cpp
+++ b/moses/ExportInterface.cpp
@@ -229,8 +229,10 @@ batch_run()
if (context_window)
task->SetContextWindow(context_window);
+#ifdef HAVE_XMLRPC_C
if (context_weights != "" && !task->GetScope()->GetContextWeights())
task->GetScope()->SetContextWeights(context_weights);
+#endif
// Allow for (sentence-)context-specific processing prior to
// decoding. This can be used, for example, for context-sensitive