From 5f1be3217b5ec3b69fb10b098e212e940c0b855c Mon Sep 17 00:00:00 2001 From: Barry Haddow Date: Thu, 7 Mar 2013 21:40:43 +0000 Subject: bugifx format of extract file for instance weighting --- phrase-extract/extract-main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'phrase-extract/extract-main.cpp') diff --git a/phrase-extract/extract-main.cpp b/phrase-extract/extract-main.cpp index 92c8a470e..cab91e92d 100644 --- a/phrase-extract/extract-main.cpp +++ b/phrase-extract/extract-main.cpp @@ -712,6 +712,10 @@ for(int fi=startF; fi<=endF; fi++) { if (m_options.isOrientationFlag()) outextractstrOrientation << orientationInfo; + if (m_options.isIncludeSentenceIdFlag()) { + outextractstr << " ||| " << sentence.sentenceID; + } + if (m_options.getInstanceWeightsFile().length()) { if (m_options.isTranslationFlag()) { outextractstr << " ||| " << sentence.weightString; @@ -722,9 +726,6 @@ for(int fi=startF; fi<=endF; fi++) { } } - if (m_options.isIncludeSentenceIdFlag()) { - outextractstr << " ||| " << sentence.sentenceID; - } if (m_options.isTranslationFlag()) outextractstr << "\n"; if (m_options.isTranslationFlag()) outextractstrInv << "\n"; -- cgit v1.2.3