Exercises

LM-C06-C-001

In a b a c a, how many times does a appear?

Compute it first, then check your number.

LM-C06-C-002

In I like tea and I like code, how many times does the bigram I like appear?

Compute it first, then check your number.

LM-C06-C-003

If count(like, tea) = 3 and count(like) = 6, what is 6 * P(tea | like)?

Compute it first, then check your number.

LM-C06-C-004

How many previous tokens does a 4-gram model use as context?

Compute it first, then check your number.

LM-C06-C-005

If a context appears 0 times in the training corpus, how many observed continuations does its plain count table have?

Compute it first, then check your number.