From 9b56e63d5194a33b54b74c8e7a119c126e0c0a78 Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Tue, 3 Nov 2015 19:00:58 +0000 Subject: eclipse. And more #ifdef HAVE_XMLRPC_C --- moses/ExportInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'moses/ExportInterface.cpp') 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 -- cgit v1.2.3