From 32dea3f24e56ac7c17343457c48f750f16838742 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Fri, 23 Jan 2015 15:50:27 +0100 Subject: dtrain: multi-reference BLEU --- training/dtrain/kbestget.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'training/dtrain/kbestget.h') diff --git a/training/dtrain/kbestget.h b/training/dtrain/kbestget.h index 85252db3..25f02273 100644 --- a/training/dtrain/kbestget.h +++ b/training/dtrain/kbestget.h @@ -52,7 +52,7 @@ struct KBestGetter : public HypSampler h.f = d->feature_values; h.model = log(d->score); h.rank = i; - h.score = scorer_->Score(h.w, *ref_, i, src_len_); + h.score = scorer_->Score(h.w, *refs_, i, src_len_); s_.push_back(h); sz_++; f_count_ += h.f.size(); @@ -73,7 +73,7 @@ struct KBestGetter : public HypSampler h.f = d->feature_values; h.model = log(d->score); h.rank = i; - h.score = scorer_->Score(h.w, *ref_, i, src_len_); + h.score = scorer_->Score(h.w, *refs_, i, src_len_); s_.push_back(h); sz_++; f_count_ += h.f.size(); -- cgit v1.2.3