diff options
Diffstat (limited to 'moses/TranslationModel/UG/mm/ug_bitext_jstats.cc')
-rw-r--r-- | moses/TranslationModel/UG/mm/ug_bitext_jstats.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/moses/TranslationModel/UG/mm/ug_bitext_jstats.cc b/moses/TranslationModel/UG/mm/ug_bitext_jstats.cc index 628d4364c..ab707cf9d 100644 --- a/moses/TranslationModel/UG/mm/ug_bitext_jstats.cc +++ b/moses/TranslationModel/UG/mm/ug_bitext_jstats.cc @@ -57,7 +57,8 @@ namespace sapt size_t jstats:: add(float w, float b, std::vector<unsigned char> const& a, uint32_t const cnt2, - uint32_t fwd_orient, uint32_t bwd_orient, int const docid, int const sid) + uint32_t fwd_orient, uint32_t bwd_orient, int const docid, + uint32_t const sid, bool const track_sid) { boost::lock_guard<boost::mutex> lk(this->lock); my_cnt2 = cnt2; @@ -77,7 +78,11 @@ namespace sapt } ++ofwd[fwd_orient]; ++obwd[bwd_orient]; - sids.push_back(sid); + // Record sentence id if requested + if (track_sid) + { + sids.push_back(sid); + } if (docid >= 0) { // while (int(indoc.size()) <= docid) indoc.push_back(0); |