summaryrefslogtreecommitdiff
path: root/decoder/oracle_bleu.h
diff options
context:
space:
mode:
authorgraehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-07 20:12:07 +0000
committergraehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-07 20:12:07 +0000
commit7d8e52210536a1fe6f5656caf65b47e97096ce8c (patch)
tree90261284d224badaa0c7ac2ba97302c5011b8ea5 /decoder/oracle_bleu.h
parent78a5f4297dcfce6c4a904322c2e989b612a6105a (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-xdecoder/oracle_bleu.h1
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;