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-04-05 17:51:50 +0300
committerUlrich Germann <ulrich.germann@gmail.com>2015-04-05 17:51:50 +0300
commit3e2f878576880e4ae33d3f8e8d63ae989e76fc47 (patch)
tree2bee6e9e82b3bb3fc6926b2fef98497447d4d776 /moses/Manager.cpp
parent34776c5e7cf0806d3a8b1d5725d87a9d573d4635 (diff)
parent02185a85fb5f78cf99228e034dc62f02c488dc8f (diff)
Merge branch 'master' into mmt-dev
Conflicts: Jamroot moses/TranslationModel/UG/mmsapt.h
Diffstat (limited to 'moses/Manager.cpp')
-rw-r--r--moses/Manager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/Manager.cpp b/moses/Manager.cpp
index e368c58f7..cb91a9d29 100644
--- a/moses/Manager.cpp
+++ b/moses/Manager.cpp
@@ -1876,8 +1876,7 @@ void Manager::OutputAlignment(ostream &out, const vector<const Hypothesis *> &ed
targetOffset += tp.GetSize();
}
- // Removing std::endl here breaks -alignment-output-file, so stop doing that, please :)
- // Or fix it somewhere else.
+ // Used by --alignment-output-file so requires endl
out << std::endl;
}
@@ -2032,6 +2031,8 @@ void Manager::OutputBestHypo(const Moses::TrellisPath &path, long /*translationI
void Manager::OutputAlignment(std::ostringstream &out, const TrellisPath &path) const
{
Hypothesis::OutputAlignment(out, path.GetEdges());
+ // Used by --alignment-output-file so requires endl
+ out << std::endl;
}
} // namespace