From 1ad8b70697da52c4acd96862ae3104893de3f133 Mon Sep 17 00:00:00 2001 From: "graehl@gmail.com" Date: Sat, 7 Aug 2010 20:12:07 +0000 Subject: init bleumodel in generate git-svn-id: https://ws10smt.googlecode.com/svn/trunk@491 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/oracle_bleu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'decoder/oracle_bleu.h') 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; -- cgit v1.2.3