Index Ai Academy
Glossary · Phase 5 · Transformers

N-gram

Also written: n-grams, n-gram model

A model that predicts the next item from the previous n − 1 items. A bigram uses one, a trigram two.

Learn it properly

A bigram model · The simplest language model, built from counts. About 35 minutes.

Open the lesson Create a free account

Other terms from the same lesson