From e67670ad5b3136993d89fe9a7e263bcede53fb98 Mon Sep 17 00:00:00 2001 From: hieuhoang1972 Date: Fri, 7 May 2010 19:33:39 +0000 Subject: [PATCH] add alignment info for -T output git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3240 1f5c12ca-751b-0410-a591-d2e778427230 --- moses/src/TargetPhrase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moses/src/TargetPhrase.cpp b/moses/src/TargetPhrase.cpp index 4da5bd579..143783258 100644 --- a/moses/src/TargetPhrase.cpp +++ b/moses/src/TargetPhrase.cpp @@ -293,8 +293,8 @@ TO_STRING_BODY(TargetPhrase); std::ostream& operator<<(std::ostream& os, const TargetPhrase& tp) { - os << static_cast(tp); - os << ", pC=" << tp.m_transScore << ", c=" << tp.m_fullScore; + os << static_cast(tp) << ":" << tp.GetAlignmentInfo(); + os << ": pC=" << tp.m_transScore << ", c=" << tp.m_fullScore; return os; }