Natural Language Processing · TEE · formulas-chapter

N-grams & probability

Formulas explained through full worked examples

  1. Unigrams, bigrams and trigrams: construct them correctly
  2. Unigram estimation and complete worked examples
  3. Bigram counts: build the table before multiplying
  4. Trigram estimates: two-word history, not two denominators