From d8fa7f3e9b8127911996c36f477bcae3831f7708 Mon Sep 17 00:00:00 2001 From: graehl Date: Tue, 31 Aug 2010 01:56:56 +0000 Subject: l2r bugfixes git-svn-id: https://ws10smt.googlecode.com/svn/trunk@635 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/inside_outside.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoder/inside_outside.h') diff --git a/decoder/inside_outside.h b/decoder/inside_outside.h index 73d4ec6a..e6289176 100644 --- a/decoder/inside_outside.h +++ b/decoder/inside_outside.h @@ -55,7 +55,7 @@ WeightType Inside(const Hypergraph& hg, *cur_node_inside_score += score; } } - return inside_score.back(); + return inside_score.empty() ? WeightType(0) : inside_score.back(); } template -- cgit v1.2.3