From 7b9c1f91e594c4b7783c72e4516d59d60a04dc91 Mon Sep 17 00:00:00 2001 From: graehl Date: Mon, 12 Jul 2010 03:42:47 +0000 Subject: DEBUG_PROMISE - looks ok git-svn-id: https://ws10smt.googlecode.com/svn/trunk@220 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/ff_lm.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'decoder/ff_lm.cc') diff --git a/decoder/ff_lm.cc b/decoder/ff_lm.cc index 0590fa7e..5de9c321 100644 --- a/decoder/ff_lm.cc +++ b/decoder/ff_lm.cc @@ -465,7 +465,8 @@ LanguageModelImpl *make_lm_impl(int order, string const& f, int load_order) return new ReuseLMI(order,ngs.get(f)); } else { LanguageModelImpl *r=new LanguageModelImpl(order,f,load_order); - ngs.add(f,r->get_lm()); + if (!load_order || !ngs.have(f)) + ngs.add(f,r->get_lm()); return r; } } -- cgit v1.2.3