Algorithmadvanced
Modified Kneser-Ney smoothing
Also called Chen-Goodman smoothing.
Kneser-Ney with three discounts, for counts one, two and three or more, set from counts of counts. The best n-gram smoothing in the measurements of Chen and Goodman.
- Time
- Θ(n N) buildΘ(n) query
- Space
- Θ(n N) extra
- Where
- N = the number of predicted training tokens; V = the vocabulary; n = the order of the model
- Model
- Word RAM
- Properties
- deterministicexactofflinerecursive
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Stanley F. Chen, Joshua Goodman, 1998
Modified Kneser-Ney smoothing is Kneser-Ney smoothing with three discounts in place of one. A count of 1 loses , a count of 2 loses , and a count of 3 or more loses . The mass taken goes, as in Kneser-Ney, to a lower order distribution built from continuation counts. Chen and Goodman introduced it in their 1998 and 1999 study of smoothing methods for n-gram language models, and it was the best method in their measurements on their corpora. It became a common default in n-gram toolkits. The three discounts come from the counts of counts with a formula close to the Good-Turing estimate, or from held-out data.
In plain words
Kneser-Ney takes the same small amount away from every count. But a word seen once after some words is much more likely to be luck than a word seen ten times. Modified Kneser-Ney takes a different amount away from words seen once, words seen twice, and words seen three or more times.
The amounts are chosen from how many word pairs were seen once, twice, three times and four times in the whole training text. The amount taken away is put in a pool, and the pool is shared out by a simpler guess. That guess counts how many different words each word was seen after, not how often it was seen. The chances after every history still add up to one.
The problem
The setting is that of Kneser-Ney smoothing. Sentences are padded with copies of <s> and one </s>; </s> is predicted and counted, <s> is never predicted. Level of the model uses the raw counts , and each lower level uses the continuation counts , the number of distinct tokens such that was seen. For a history of length let , and let , and be the numbers of words with equal to 1, equal to 2, and at least 3.
The discount of a count is , , and for , with a separate triple for each level. The model is
with when , the history without its first token, and . Level 1 has zero discounts by default, so it is the continuation unigram.
The algorithm
Let be the number of keys of a level whose count is . Chen and Goodman (1999, equation 17) estimate
MKN-TRAIN(corpus, n)- 1
for each predicted position of each padded sentence: a_n(the n-gram ending there) += 1 - 2
for m ← n - 1 downto 1: for each distinct key x g of a_{m+1}: a_m(g) += 1 - 3
for m ← 2 to n: (D_1, D_2, D_3+) ← equation 17 on n_1 .. n_4 of a_m; check 0 ≤ D(k) ≤ k MKN-PROB(w, h) ▷ h holds m - 1 tokens- 4
if m = 1 then lower ← 1 / |V| else lower ← MKN-PROB(w, h') - 5
T ← Σ_x a_m(h x) - 6
if T = 0 then return lower - 7
γ ← (D_1 N_1(h ·) + D_2 N_2(h ·) + D_3+ N_3+(h ·)) / T - 8
k ← a_m(h w); return (k - D(k)) / T + γ · lower
Lines L1 and L2 are the counting of Kneser-Ney. Line L3 is new. The check in line L3 matters: the estimates can leave the range on small data, and then the row would not sum to 1. The totals and the three numbers , , are stored for each history at training time, so a query costs one lookup per level.
Example
Take six sentences: "x y" three times, "x z" twice and "x u" once, with . After the history x the counts are y 3, z 2 and u 1, so and each count class has one word. The text has 7 bigram types, and the continuation unigram is for each of x, y, z and u and for </s>, which follows three words.
With the discounts , and , . Kneser-Ney with has . The two rows after x are:
| count | modified, | modified | Kneser-Ney | |
|---|---|---|---|---|
| y | 3 | 3/2 | ||
| z | 2 | 1 | ||
| u | 1 | 1/2 | ||
</s> |
0 | 0 | ||
| x | 0 | 0 |
Both rows sum to 1. Here the modified form takes more from the frequent word and less from the singleton. On real data the estimates come from equation 17. For a trigram model on 300 random sentences over 50 words with Zipf weights, the top level had , which gives and , and .
Correctness
The proofs file shows four things. Every conditional distribution sums to 1 exactly when for every : the seen words lose , which is exactly once the words are grouped by count class, and the lower level sums to 1. Every probability is positive when the discounts above level 1 are positive. With the model is Kneser-Ney. And in equation 17, always, with the Good-Turing adjusted count, and or can be negative on small or odd data, which is why line L3 checks the range.
Proof: Modified Kneser-Ney gives a proper distribution after every history when each discount D(k) lies in [0, k], and it reduces to Kneser-Ney when the three discounts are equalfull
We use the notation of the page. Level uses the raw counts , and each level uses the continuation counts . Lines L1 and L2 compute them as on the Kneser-Ney page, with the same proof: every -gram that ends at a predicted token is the suffix of the n-gram that ends there, because of the padding with copies of <s>. For a history of length we write and for the number of with , with for . The discount of a count at level is , , and for .
Theorem 1 (a proper distribution). Assume that at every level , and , that is for every . Then for every level and every history of length , and .
Proof. Induction on . Level 0 is uniform on . Let . If , line L6 returns , which sums to 1. Otherwise, by the assumption for every , and it is 0 when . Sum line L8 over :
where the middle step groups the seen words by their count. The second term adds by the induction hypothesis, and . So the total is 1 and every term is non-negative.
The bounds are tight. If , a word seen twice gets a negative first term; if only , a word seen once does. The code raises an error instead of clipping, because a clipped discount no longer matches and the row no longer sums to 1.
Theorem 2 (positivity). Assume in addition that the discounts of level 1 are 0, that every word of was seen, and that all discounts of the levels are positive. Then for all and .
Proof. At level 1 with zero discounts, , and for every seen word because it ends at least one seen bigram (for , ). At a level with , at least one word was seen after , so and . With the level returns .
Theorem 3 (equal discounts give Kneser-Ney). If at every level, the model is interpolated Kneser-Ney with the discount at that level.
Proof. Then for every , so for every integer when , and . These are the two terms of Kneser-Ney.
Lemma 4 (the default discounts). Let be the number of keys of a level with count , with , and . The estimates of Chen and Goodman are for and . Then:
- , so always.
- , where is the Good-Turing adjusted count.
- and can be negative. So the default needs a check.
Proof. (1) , and . (2) is the definition of rewritten. (3) Take and . Then and .
When the formula for divides by zero, and when the formula for does. The implementation raises an error in all of these cases and accepts explicit discounts.
Complexity
As for Kneser-Ney: training makes one pass over the predicted tokens and one pass over the distinct n-grams of each level, expected n-gram operations with hash tables. Line L3 adds one pass over the counts of each level. A query takes operations, and a full distribution . The tables take space; the three numbers per history add a constant factor.
Properties
- A proper distribution for discounts in range, exactly, in rational arithmetic.
- Three discounts per level. The discount depends on the count class. Equation 17 does not force it to grow with the count: in the trigram example above, .
- Contains Kneser-Ney as the case of equal discounts.
- Discounts from data. The default needs no held-out data. Chen and Goodman's best variant fitted the discounts on held-out data instead.
Variants and improvements
- kneser-ney-mod and kneser-ney-mod-fix. In the experiments of Chen and Goodman, the first optimizes the discounts on held-out data and the second uses equation 17; the second did slightly worse.
- Backoff form. The variant kneser-ney-mod-backoff of Chen and Goodman uses the lower level only for unseen words. It did worse than the interpolated form for small counts.
- Two discounts. Ney and colleagues (1997) independently suggested two discounts in place of one, as Chen and Goodman report.
- Pruned models. Large modified Kneser-Ney models are often made smaller with entropy-based pruning, which removes the n-grams whose loss changes the model least.
When to use it
Use it for a count-based n-gram model when the corpus is large enough that the counts of counts to are stable at every level. It is the usual baseline that later neural language models were compared with, as in Bengio and colleagues (2003). On very small corpora the estimates can fail; use plain Kneser-Ney or fit the discounts on held-out data. For web-scale counts where only a score is needed, stupid backoff is much cheaper to build.
Pitfalls
- "The best smoothing". It was the best of the methods Chen and Goodman measured, on their corpora (Brown, North American Business news, Switchboard and Broadcast News) and their n-gram orders. That is a measurement, not a theorem.
- Out-of-range discounts. Equation 17 can give or , for example with and . Clipping the discount without changing breaks the sum to 1. Check and fall back to explicit values.
- Division by zero. or makes equation 17 undefined. This happens at low levels of small models, and in corpora where rare n-grams were removed before counting.
- Counts of counts of the wrong level. Each level needs its own discounts, from the counts that level uses.
- Lower levels with raw counts. As for Kneser-Ney, every level below uses continuation counts.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/modified-kneser-ney-smoothing/. The authors are listed in prov/R2ZAVZ.jsonl.
"""Interpolated modified Kneser-Ney smoothing (Chen and Goodman), exact in Fraction.
A corpus is a list of sentences, and a sentence is a list of str tokens.
Each sentence is padded with n - 1 copies of "<s>" on the left and one
"</s>" on the right. "</s>" is predicted and counted; "<s>" is never
predicted.
Level n uses raw counts and each lower level m < n uses the continuation
counts N_1+(. g). A count k loses D(k): 0 for k = 0, D1 for k = 1, D2 for
k = 2 and D3+ for k >= 3. With T(h) = sum_x a(h x) and N_r(h .) the number
of x with a(h x) = r (N_3+ for r >= 3),
P_m(w | h) = (a(h w) - D(a(h w))) / T(h) + gamma(h) P_m-1(w | h')
gamma(h) = (D1 N_1(h .) + D2 N_2(h .) + D3+ N_3+(h .)) / T(h)
and P_m(w | h) = P_m-1(w | h') when T(h) = 0. Below level 1 sits the
uniform distribution 1 / |V|. The discounts of level 1 are 0 by default.
"""
import math
from collections import Counter
from fractions import Fraction
from typing import Iterable, Sequence
BOS, EOS = "<s>", "</s>"
Discounts = tuple[Fraction, Fraction, Fraction]
def pad(sent: Sequence[str], n: int) -> list[str]:
"""Return the sentence with n - 1 copies of <s> in front and </s> at the end."""
return [BOS] * (n - 1) + list(sent) + [EOS]
def level_counts(corpus: Iterable[Sequence[str]], n: int) -> dict[int, Counter]:
"""Return a[m] for m = 1 to n: raw counts of the n-grams, continuation counts below."""
a = {n: Counter()}
for sent in corpus:
toks = pad(sent, n)
for i in range(n - 1, len(toks)):
a[n][tuple(toks[i - n + 1 : i + 1])] += 1 # @line L1
for m in range(n - 1, 0, -1):
a[m] = Counter()
for g in a[m + 1]:
a[m][g[1:]] += 1 # @line L2
return a
def chen_goodman_discounts(counts: Counter) -> Discounts:
"""D1, D2, D3+ from the counts of counts n_1 to n_4 of one level (Chen and Goodman, eq. 17)."""
cc = Counter(counts.values())
n1, n2, n3, n4 = cc[1], cc[2], cc[3], cc[4]
if n1 == 0 or n2 == 0 or n3 == 0:
raise ValueError("n_1, n_2 and n_3 must be positive; give the discounts explicitly")
y = Fraction(n1, n1 + 2 * n2) # @line L3
d1 = 1 - 2 * y * Fraction(n2, n1)
d2 = 2 - 3 * y * Fraction(n3, n2)
d3 = 3 - 4 * y * Fraction(n4, n3)
return check_discounts((d1, d2, d3))
def check_discounts(d: Sequence[Fraction | int]) -> Discounts:
"""Return the three discounts as Fractions; each D(k) must lie in [0, k]."""
if len(d) != 3:
raise ValueError("give three discounts D1, D2, D3+")
d1, d2, d3 = (Fraction(x) for x in d)
if not (0 <= d1 <= 1 and 0 <= d2 <= 2 and 0 <= d3 <= 3):
raise ValueError(f"discounts out of range: D1 in [0, 1], D2 in [0, 2], D3+ in [0, 3], got {d1}, {d2}, {d3}")
return d1, d2, d3
class ModifiedKneserNeyLM:
"""An interpolated modified Kneser-Ney n-gram model over a closed vocabulary."""
def __init__(
self,
corpus: Iterable[Sequence[str]],
n: int,
discounts: Sequence[Sequence[Fraction | int]] | None = None,
vocab: Iterable[str] | None = None,
):
"""discounts[m - 1] = (D1, D2, D3+) for level m. By default level 1 has (0, 0, 0)."""
if n < 1:
raise ValueError("the order n must be at least 1")
corpus = [list(s) for s in corpus]
self.n = n
self.a = level_counts(corpus, n)
seen = {g[-1] for g in self.a[n]}
self.vocab = set(seen) if vocab is None else set(vocab) | {EOS}
if BOS in self.vocab:
raise ValueError("<s> is never predicted, so it is not in the vocabulary")
if not seen <= self.vocab:
raise ValueError("the vocabulary must hold every training token")
if discounts is None:
discounts = [(0, 0, 0)] + [chen_goodman_discounts(self.a[m]) for m in range(2, n + 1)]
if len(discounts) != n:
raise ValueError("give three discounts for each order 1 to n")
self.d = {m: check_discounts(discounts[m - 1]) for m in range(1, n + 1)}
if self.vocab != seen and self.d[1] == (0, 0, 0):
raise ValueError("a vocabulary larger than the training tokens needs discounts at level 1")
# T(h), and N_1(h .), N_2(h .), N_3+(h .) for every history of every level.
self.total = {m: Counter() for m in range(1, n + 1)}
self.nr = {m: {} for m in range(1, n + 1)}
for m in range(1, n + 1):
for g, k in self.a[m].items():
h = g[:-1]
self.total[m][h] += k
row = self.nr[m].setdefault(h, [0, 0, 0])
row[min(k, 3) - 1] += 1
def discount(self, m: int, k: int) -> Fraction:
"""D(k) at level m."""
return Fraction(0) if k == 0 else self.d[m][min(k, 3) - 1]
def history(self, tokens: Sequence[str]) -> tuple:
"""The last n - 1 tokens of <s> ... <s> tokens: the history of the next prediction."""
if self.n == 1:
return ()
return tuple([BOS] * (self.n - 1) + list(tokens))[-(self.n - 1) :]
def prob(self, w: str, tokens: Sequence[str] = ()) -> Fraction:
"""P(w | the sentence so far), where tokens is the sentence so far without <s>."""
if w not in self.vocab:
raise KeyError(f"{w!r} is not in the vocabulary")
return self._prob(w, self.history(tokens))
def _prob(self, w: str, h: tuple) -> Fraction:
m = len(h) + 1
if m == 1: # @line L4
lower = Fraction(1, len(self.vocab))
else:
lower = self._prob(w, h[1:])
t = self.total[m][h] # @line L5
if t == 0: # @line L6
return lower
d1, d2, d3 = self.d[m]
n1, n2, n3 = self.nr[m][h]
gamma = (d1 * n1 + d2 * n2 + d3 * n3) / t # @line L7
k = self.a[m][h + (w,)]
return (k - self.discount(m, k)) / t + gamma * lower # @line L8
def distribution(self, tokens: Sequence[str] = ()) -> dict[str, Fraction]:
"""The full conditional distribution over the vocabulary."""
return {w: self.prob(w, tokens) for w in sorted(self.vocab)}
def sentence_logprob(self, sent: Sequence[str]) -> float:
"""The natural log of the probability of the sentence, </s> included, summed in log space."""
sent = list(sent)
total = 0.0
for i, w in enumerate(sent + [EOS]):
p = self.prob(w, sent[:i])
total += math.log(p.numerator) - math.log(p.denominator)
return total
test_modified_kneser_ney_smoothing.py 177 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/modified-kneser-ney-smoothing/. The authors are listed in prov/R2ZAVZ.jsonl.
import math
import random
from collections import Counter
from fractions import Fraction
import pytest
from modified_kneser_ney_smoothing import (
BOS,
EOS,
ModifiedKneserNeyLM,
chen_goodman_discounts,
check_discounts,
level_counts,
)
CHECK = [["a", "b"], ["a", "c"], ["b", "c"]]
Q = Fraction(3, 4)
def random_corpus(seed, sentences, words, max_len):
rng = random.Random(seed)
return [[rng.choice(words) for _ in range(rng.randint(0, max_len))] for _ in range(sentences)]
def zipf_corpus(seed, sentences, size, max_len):
"""Words w0, w1, ... with weights 1, 1/2, 1/3, ..., so that small counts are common."""
rng = random.Random(seed)
words = [f"w{i}" for i in range(size)]
weights = [1 / (i + 1) for i in range(size)]
return [rng.choices(words, weights, k=rng.randint(0, max_len)) for _ in range(sentences)]
def prefixes(corpus, n):
out = {()}
for s in corpus:
for i in range(len(s) + 1):
out.add(tuple(s[:i]))
out.add(("zz",) * max(n - 1, 1))
return out
def test_equal_discounts_give_the_kneser_ney_check_value():
lm = ModifiedKneserNeyLM(CHECK, 2, discounts=[(0, 0, 0), (Q, Q, Q)])
assert lm.prob("a") == Fraction(41, 84)
assert lm.prob("b") == Fraction(19, 84)
assert lm.prob("c") == Fraction(1, 7)
assert lm.prob(EOS) == Fraction(1, 7)
assert lm.prob(EOS, ["a", "c"]) == Fraction(41, 56)
def test_chen_goodman_discounts_by_hand():
# counts of counts n_1..n_4 = 6, 3, 2, 1
counts = Counter({i: k for i, k in enumerate([1] * 6 + [2] * 3 + [3] * 2 + [4])})
y = Fraction(6, 12)
d1, d2, d3 = chen_goodman_discounts(counts)
assert d1 == 1 - 2 * y * Fraction(3, 6) == y
assert d2 == 2 - 3 * y * Fraction(2, 3) == 1
assert d3 == 3 - 4 * y * Fraction(1, 2) == 2
def test_d1_always_equals_y():
rng = random.Random(3)
for _ in range(50):
n1, n2, n3, n4 = (rng.randint(1, 40) for _ in range(4))
counts = Counter({i: k for i, k in enumerate([1] * n1 + [2] * n2 + [3] * n3 + [4] * n4)})
try:
d = chen_goodman_discounts(counts)
except ValueError:
continue
assert d[0] == Fraction(n1, n1 + 2 * n2)
def test_one_history_by_hand():
# After "x": y three times, z twice, u once. Discounts (1/2, 1, 3/2).
corpus = [["x", "y"]] * 3 + [["x", "z"]] * 2 + [["x", "u"]]
d = [(0, 0, 0), (Fraction(1, 2), 1, Fraction(3, 2))]
lm = ModifiedKneserNeyLM(corpus, 2, discounts=d)
gamma = (Fraction(1, 2) * 1 + 1 * 1 + Fraction(3, 2) * 1) / 6
assert gamma == Fraction(1, 2)
uni = lm._prob("y", ())
assert uni == Fraction(1, 7) # 7 bigram types, and y follows only x
assert lm.prob("y", ["x"]) == (3 - Fraction(3, 2)) / 6 + gamma * uni
assert lm.prob("u", ["x"]) == (1 - Fraction(1, 2)) / 6 + gamma * lm._prob("u", ())
assert sum(lm.distribution(["x"]).values()) == 1
def naive_prob(corpus, n, d, vocab, w, h):
m = len(h) + 1
lower = Fraction(1, len(vocab)) if m == 1 else naive_prob(corpus, n, d, vocab, w, h[1:])
grams = []
for s in corpus:
toks = [BOS] * (n - 1) + s + [EOS]
for i in range(n - 1, len(toks)):
grams.append(tuple(toks[i - n + 1 : i + 1]))
def a(g):
if m == n:
return sum(1 for x in grams if x == g)
return len({x[-m - 1] for x in grams if x[-m:] == g})
def disc(k):
return Fraction(0) if k == 0 else Fraction(d[m - 1][min(k, 3) - 1])
followers = {g[-1] for g in grams if g[-m:-1] == h}
t = sum(a(h + (x,)) for x in followers)
if t == 0:
return lower
gamma = sum(disc(a(h + (x,))) for x in followers) / t
k = a(h + (w,))
return (k - disc(k)) / t + gamma * lower
@pytest.mark.parametrize("n", [1, 2, 3])
def test_matches_naive_reference(n):
corpus = random_corpus(20 + n, 14, ["x", "y", "z", "u"], 5)
d = [(Fraction(1, 3), Fraction(1, 2), Fraction(1, 2))] + [(Fraction(1, 2), Fraction(5, 4), 2)] * (n - 1)
vocab = ["x", "y", "z", "u", "v"]
lm = ModifiedKneserNeyLM(corpus, n, discounts=d, vocab=vocab)
for toks in list(prefixes(corpus, n))[:25]:
h = lm.history(toks)
for w in sorted(lm.vocab):
assert lm.prob(w, toks) == naive_prob(corpus, n, d, lm.vocab, w, h)
@pytest.mark.parametrize("n,seed", [(1, 1), (2, 2), (3, 3), (4, 5)])
def test_every_distribution_sums_to_one_with_default_discounts(n, seed):
corpus = zipf_corpus(seed + 2, 300, 50, 6)
lm = ModifiedKneserNeyLM(corpus, n)
for m in range(2, n + 1):
assert lm.d[m][0] == chen_goodman_discounts(level_counts(corpus, n)[m])[0]
for toks in list(prefixes(corpus, n))[:60]:
dist = lm.distribution(toks)
assert sum(dist.values()) == 1
assert all(p > 0 for p in dist.values())
def test_sums_to_one_at_the_edges_of_the_ranges():
corpus = random_corpus(8, 40, ["a", "b", "c"], 6)
for d in [(0, 0, 0), (1, 2, 3), (1, 0, 3), (Fraction(1, 7), 2, 0)]:
lm = ModifiedKneserNeyLM(corpus, 3, discounts=[(Fraction(1, 2),) * 3, d, d], vocab=["a", "b", "c", "q"])
for toks in prefixes(corpus, 3):
assert sum(lm.distribution(toks).values()) == 1
def test_log_space_where_the_product_underflows():
corpus = zipf_corpus(3, 300, 50, 6)
lm = ModifiedKneserNeyLM(corpus, 2)
sent = zipf_corpus(9, 1, 50, 1)[0] + [w for s in zipf_corpus(10, 400, 50, 6) for w in s]
assert len(sent) > 900
product, log_sum = 1.0, 0.0
for i, w in enumerate(sent + [EOS]):
p = float(lm.prob(w, sent[:i]))
product *= p
log_sum += math.log(p)
assert product == 0.0
lp = lm.sentence_logprob(sent)
assert lp < -745 and lp == pytest.approx(log_sum, rel=1e-12)
def test_bad_input():
with pytest.raises(ValueError):
check_discounts((Fraction(3, 2), 1, 1))
with pytest.raises(ValueError):
check_discounts((1, 1, 4))
with pytest.raises(ValueError):
check_discounts((1, 1))
with pytest.raises(ValueError):
chen_goodman_discounts(Counter({"a": 1, "b": 2})) # n_3 = 0
with pytest.raises(ValueError):
# n_1..n_4 = 1, 1, 6, 0: Y = 1/3 and D2 = 2 - 3 (1/3) 6 = -4
chen_goodman_discounts(Counter({i: k for i, k in enumerate([1, 2, 3, 3, 3, 3, 3, 3])}))
with pytest.raises(ValueError):
ModifiedKneserNeyLM(CHECK, 2, discounts=[(0, 0, 0), (Q, Q, Q)], vocab=["a", "b", "c", "q"])
History
Chen and Goodman (1998, 1999) compared the main smoothing methods of the time on several corpora, training set sizes and n-gram orders. They found interpolated Kneser-Ney the best of the existing methods and proposed this modification, with three discounts per level. In their discussion, the modified form "consistently outperformed all other algorithms" in their experiments, and the largest single factor in its success was the lower order distribution of Kneser and Ney. They credit the estimates of equation 17 to Ries (1997), and note that Ney and colleagues had independently proposed two discounts. Modified Kneser-Ney then became a common default in n-gram toolkits.
References
- Stanley F. Chen and Joshua Goodman, An empirical study of smoothing techniques for language modeling, Computer Speech and Language 13(4), 1999, pages 359 to 394, Section 3 on pages 370 to 371 (the three discounts, gamma, and the estimates of equation 17), Section 4.1 (the variants kneser-ney-mod and kneser-ney-mod-fix), Section 6 on pages 390 to 391 (the discussion of the results)
- Chen and Goodman 1998, the longer report with the full set of experiments
- Reinhard Kneser and Hermann Ney, Improved backing-off for M-gram language modeling, Proceedings of ICASSP 1995, volume 1, pages 181 to 184, the continuation counts of the lower order distribution
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag R2ZAVZ Edit this page History Report an error Markdown