diff options
author | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-04 21:42:04 +0000 |
---|---|---|
committer | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-04 21:42:04 +0000 |
commit | 5c7eef3d08ecc2c30bcf0f9a5f17716c21f5bfc3 (patch) | |
tree | 987b67d9ed781e02f5db5da679a143f753fd4522 | |
parent | 801fc08bb33fda4b3c06b88e86d25823084c1b3c (diff) |
fix to compile with early versions of boost
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@479 ec762483-ff6d-05da-a07a-a48fb63a330f
-rw-r--r-- | decoder/Makefile.am | 1 | ||||
-rwxr-xr-x | decoder/oracle_bleu.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/decoder/Makefile.am b/decoder/Makefile.am index a34aba1a..189e28b0 100644 --- a/decoder/Makefile.am +++ b/decoder/Makefile.am @@ -82,7 +82,6 @@ libcdec_a_SOURCES = \ ../vest/comb_scorer.cc \ ../vest/error_surface.cc \ ../vest/viterbi_envelope.cc \ - tromble_loss.cc \ freqdict.cc \ lexalign.cc \ lextrans.cc \ 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; |