diff options
| author | Patrick Simianer <p@simianer.de> | 2011-10-19 14:02:34 +0200 | 
|---|---|---|
| committer | Patrick Simianer <p@simianer.de> | 2011-10-19 14:02:34 +0200 | 
| commit | eb14e36d0b29f19321d44dd7dfa73cc703838d86 (patch) | |
| tree | 1285e9e56959bc3a4b506e36bbc3b49f4e938fa0 /klm/lm/blank.hh | |
| parent | 68f158b11df9f4072699fe6a4c8022ea54102b28 (diff) | |
| parent | 04e38a57b19ea012895ac2efb39382c2e77833a9 (diff) | |
merge upstream/master
Diffstat (limited to 'klm/lm/blank.hh')
| -rw-r--r-- | klm/lm/blank.hh | 14 | 
1 files changed, 0 insertions, 14 deletions
| diff --git a/klm/lm/blank.hh b/klm/lm/blank.hh index 162411a9..2fb64cd0 100644 --- a/klm/lm/blank.hh +++ b/klm/lm/blank.hh @@ -38,20 +38,6 @@ inline bool HasExtension(const float &backoff) {    return compare.i != interpret.i;  } -/* Suppose "foo bar baz quux" appears in the ARPA but not "bar baz quux" or - * "baz quux" (because they were pruned).  1.2% of n-grams generated by SRI - * with default settings on the benchmark data set are like this.  Since search - * proceeds by finding "quux", "baz quux", "bar baz quux", and finally  - * "foo bar baz quux" and the trie needs pointer nodes anyway, blanks are - * inserted.  The blanks have probability kBlankProb and backoff kBlankBackoff. - * A blank is recognized by kBlankProb in the probability field; kBlankBackoff - * must be 0 so that inference asseses zero backoff from these blanks.   - */ -const float kBlankProb = -std::numeric_limits<float>::infinity(); -const float kBlankBackoff = kNoExtensionBackoff; -const uint32_t kBlankProbQuant = 0; -const uint32_t kBlankBackoffQuant = 0; -  } // namespace ngram  } // namespace lm  #endif // LM_BLANK__ | 
