diff options
Diffstat (limited to 'moses')
-rw-r--r-- | moses/ExportInterface.cpp | 2 | ||||
-rw-r--r-- | moses/TranslationModel/ProbingPT/line_splitter.cpp | 4 | ||||
-rw-r--r-- | moses/TranslationModel/UG/mmsapt.cpp | 3 |
3 files changed, 6 insertions, 3 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 diff --git a/moses/TranslationModel/ProbingPT/line_splitter.cpp b/moses/TranslationModel/ProbingPT/line_splitter.cpp index 97ccfcae1..1425b35f6 100644 --- a/moses/TranslationModel/ProbingPT/line_splitter.cpp +++ b/moses/TranslationModel/ProbingPT/line_splitter.cpp @@ -16,10 +16,10 @@ line_text splitLine(StringPiece textin) //Get probabilities output.prob = *it; it++; - //Get WordAllignment 1 + //Get WordAllignment output.word_all1 = *it; it++; - //Get WordAllignment 2 + //Get count output.word_all2 = *it; return output; diff --git a/moses/TranslationModel/UG/mmsapt.cpp b/moses/TranslationModel/UG/mmsapt.cpp index 1110bc16a..4fa53d0f4 100644 --- a/moses/TranslationModel/UG/mmsapt.cpp +++ b/moses/TranslationModel/UG/mmsapt.cpp @@ -811,9 +811,9 @@ namespace Moses Mmsapt:: setup_bias(ttasksptr const& ttask) { +#ifdef HAVE_XMLRPC_C // VERBOSE(2,"Setting up bias at " << HERE << std::endl); - SPTR<ContextScope> const& scope = ttask->GetScope(); SPTR<ContextForQuery> context = scope->get<ContextForQuery>(btfix.get(), true); if (context->bias) return; @@ -853,6 +853,7 @@ namespace Moses context->bias_log = m_bias_log; context->bias->loglevel = m_bias_loglevel; } +#endif } void |