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 | 7d8e52210536a1fe6f5656caf65b47e97096ce8c (patch) | |
tree | 90261284d224badaa0c7ac2ba97302c5011b8ea5 /decoder | |
parent | 78a5f4297dcfce6c4a904322c2e989b612a6105a (diff) |
init bleumodel in generate
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@491 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder')
-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; |