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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-11-24 23:42:53 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-11-24 23:42:53 +0300
commitbb135f6a642cf50dcc75af402a3c33ac7eb89500 (patch)
tree50ce59ae48be144f9427912bd6005b8ac4974ec0 /moses/server
parentca038c5e4c7147b946fa29da27cc0e2e1cab1459 (diff)
Cosmetic fix for having the server reporting word alignments left-to-right.
Diffstat (limited to 'moses/server')
-rw-r--r--moses/server/TranslationRequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/server/TranslationRequest.cpp b/moses/server/TranslationRequest.cpp
index 2157b2466..da33cae83 100644
--- a/moses/server/TranslationRequest.cpp
+++ b/moses/server/TranslationRequest.cpp
@@ -397,7 +397,7 @@ pack_hypothesis(const Moses::Manager& manager, vector<Hypothesis const* > const&
if (m_withWordAlignInfo) {
// word alignment, if requested
vector<xmlrpc_c::value> w_aln;
- BOOST_FOREACH(Hypothesis const* e, edges)
+ BOOST_REVERSE_FOREACH(Hypothesis const* e, edges)
e->OutputLocalWordAlignment(w_aln);
dest["word-align"] = xmlrpc_c::value_array(w_aln);
}