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 | 7acae787a81b7fe6b8f45191c3a8a0f5fd178593 (patch) | |
tree | e780165639c8d37ad3b2ed71d4a56f40388e8f19 /klm/lm/vocab.cc | |
parent | bff7ea2fd228a1c80e8b85f6bbe562618ebdfe97 (diff) |
Update error handling and a corner case of trie.
Diffstat (limited to 'klm/lm/vocab.cc')
-rw-r--r-- | klm/lm/vocab.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klm/lm/vocab.cc b/klm/lm/vocab.cc index 415f8331..fd11ad2c 100644 --- a/klm/lm/vocab.cc +++ b/klm/lm/vocab.cc @@ -192,7 +192,7 @@ void MissingUnknown(const Config &config) throw(SpecialWordMissingException) { case Config::SILENT: return; case Config::COMPLAIN: - if (config.messages) *config.messages << "The ARPA file is missing <unk>. Substituting probability " << config.unknown_missing_prob << "." << std::endl; + if (config.messages) *config.messages << "The ARPA file is missing <unk>. Substituting log10 probability " << config.unknown_missing_logprob << "." << std::endl; break; case Config::THROW_UP: UTIL_THROW(SpecialWordMissingException, "The ARPA file is missing <unk> and the model is configured to throw an exception."); |