diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-12 03:42:47 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-12 03:42:47 +0000 |
commit | 7b9c1f91e594c4b7783c72e4516d59d60a04dc91 (patch) | |
tree | 2f5ba51f612ff0c1e424e53d44a9c71474182a8f /decoder/ff_lm.cc | |
parent | 11980f43455a85f31f2941f570f9a3a1ff925408 (diff) |
DEBUG_PROMISE - looks ok
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@220 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/ff_lm.cc')
-rw-r--r-- | decoder/ff_lm.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |