diff options
author | Kenneth Heafield <kheafiel@cluster17.lti.ece.cmu.local> | 2011-03-21 15:55:14 -0400 |
---|---|---|
committer | Kenneth Heafield <kheafiel@cluster17.lti.ece.cmu.local> | 2011-03-21 15:55:14 -0400 |
commit | 78af1ef80f84023b4ff0661c47201850dbd46363 (patch) | |
tree | 0e14ff428d482a8155ad5aedf91f539df2efac53 /klm/lm/model.cc | |
parent | 21a136afad4d1b04cddc3ff1e105b0fc7e9d8c2c (diff) |
Update error handling and a corner case of trie.
Diffstat (limited to 'klm/lm/model.cc')
-rw-r--r-- | klm/lm/model.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klm/lm/model.cc b/klm/lm/model.cc index 14949e97..1492276a 100644 --- a/klm/lm/model.cc +++ b/klm/lm/model.cc @@ -86,7 +86,7 @@ template <class Search, class VocabularyT> void GenericModel<Search, VocabularyT assert(config.unknown_missing != Config::THROW_UP); // Default probabilities for unknown. search_.unigram.Unknown().backoff = 0.0; - search_.unigram.Unknown().prob = config.unknown_missing_prob; + search_.unigram.Unknown().prob = config.unknown_missing_logprob; } FinishFile(config, kModelType, counts, backing_); } |