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
commit1ad8b70697da52c4acd96862ae3104893de3f133 (patch)
treeb8aadccfca73281ea62bdc5559f0b52856574563 /decoder/oracle_bleu.h
parent7ba6dfa8cc30eab0e5317c9ec4c7bee7ce5e507d (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;