diff options
author | Barry Haddow <barry.haddow@gmail.com> | 2013-03-08 01:40:43 +0400 |
---|---|---|
committer | Barry Haddow <barry.haddow@gmail.com> | 2013-03-08 01:40:43 +0400 |
commit | 5f1be3217b5ec3b69fb10b098e212e940c0b855c (patch) | |
tree | b1564f89291322afb1d638aa3ba47e2d81316a3e | |
parent | b968eae6291af3c6e2f4893a50dd643ebd297768 (diff) |
bugifx format of extract file for instance weighting
-rw-r--r-- | phrase-extract/extract-main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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"; |