A language model read a sentence and gave each word the chance it saw that word coming. Write sentence_score(chances): one score for the whole sentence. A likelier sentence must score higher, and it has to work for sentences of any length.
A model gives each word of a text the chance it saw that word coming, and a text’s chance is those multiplied. Fine for a sentence. Then two 2,000-word essays are read side by side, and the computer runs out of zeros.
sentence_score(chances)| chances | the chance of each word in the sentence, in order | e.g. [0.5, 0.5, 0.5] |
| returns | one score: a likelier sentence scores higher | |