summaryrefslogtreecommitdiff
path: root/klm/lm/vocab.cc
diff options
context:
space:
mode:
authorKenneth Heafield <kheafiel@cluster17.lti.ece.cmu.local>2011-03-21 15:55:14 -0400
committerKenneth Heafield <kheafiel@cluster17.lti.ece.cmu.local>2011-03-21 15:55:14 -0400
commit78af1ef80f84023b4ff0661c47201850dbd46363 (patch)
tree0e14ff428d482a8155ad5aedf91f539df2efac53 /klm/lm/vocab.cc
parent21a136afad4d1b04cddc3ff1e105b0fc7e9d8c2c (diff)
Update error handling and a corner case of trie.
Diffstat (limited to 'klm/lm/vocab.cc')
-rw-r--r--klm/lm/vocab.cc2
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.");