diff options
author | graehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-07 20:12:07 +0000 |
---|---|---|
committer | graehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-07 20:12:07 +0000 |
commit | 1ad8b70697da52c4acd96862ae3104893de3f133 (patch) | |
tree | b8aadccfca73281ea62bdc5559f0b52856574563 /decoder/oracle_bleu.h | |
parent | 7ba6dfa8cc30eab0e5317c9ec4c7bee7ce5e507d (diff) |
init bleumodel in generate
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@491 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/oracle_bleu.h')
-rwxr-xr-x | decoder/oracle_bleu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/oracle_bleu.h b/decoder/oracle_bleu.h index c5ca2fcf..86426ef5 100755 --- a/decoder/oracle_bleu.h +++ b/decoder/oracle_bleu.h @@ -145,6 +145,7 @@ struct OracleBleu { init_loss(); } void init_loss() { + if (refs.empty()) return; loss=ScoreTypeFromString(loss_name); order=(loss==IBM_BLEU_3)?3:4; std::ostringstream param; |