summaryrefslogtreecommitdiff
path: root/decoder/oracle_bleu.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/oracle_bleu.h')
-rwxr-xr-xdecoder/oracle_bleu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/oracle_bleu.h b/decoder/oracle_bleu.h
index 56ff8b72..932378e5 100755
--- a/decoder/oracle_bleu.h
+++ b/decoder/oracle_bleu.h
@@ -234,7 +234,7 @@ struct OracleBleu {
double bleu_scale_ = doc_src_length * doc_score->ComputeScore();
doc_score->PlusEquals(*sentscore);
doc_score->TimesEquals(scale_oracle);
- sentscore.reset();
+ ScoreP().swap(sentscore);
doc_src_length = (doc_src_length + tmp_src_length) * scale_oracle;
if (out) {
std::string d;