N-gram language models
Step 3 of 10 in NLP · Build · Medium
Predict the next word from the previous n−1 words using counts. Perplexity measures how surprised the model is by real text.
Build it
Bigram & trigram LMs
Train on a book with add-k smoothing; generate text and report perplexity on held-out text.
Done when: Trigram has lower perplexity; samples shown.
Resources
Earn this star
On the map, you log what you built. Finish the step and its star lights.
Open this step on the map