A tiny language model writes one letter at a time. In its training text, here’s how often each of a, e, h, i, o, u came right after a t. Write next_chances(counts): the chance of each letter coming next after a t, for a model that will be scored on text it has never seen (“How confused is the model?”).
A tiny model’s training text: each time a t was followed by a, e, h, i, o or u, that pair goes into its letter’s jar. Then the counts have to become chances, and new text arrives.
next_chances(counts)| counts | counts[i]: how often letter i came after a "t" in training letters, in order: a, e, h, i, o, u | e.g. [3, 0, 6, 1, 0, 0] |
| returns | one chance per letter | |