Skip to content
Machine Learning: the fundamentals
Text· 11 minMembers-only lesson

Tokens, n-grams and context

A language model does not read text letter by letter, nor necessarily word by word: it splits it into tokens, units that can be a whole word, a fragment of a word, or even a single character. This splitting is…

This lesson is for members only

The rest is for members

Create an account to open the full course, save your progress and take the graded quizzes.

Lessons marked "open access" work without an account.

We measure site traffic (GA4, Mixpanel). If you say yes, Microsoft Clarity also records how the public pages are used (clicks, scrolling) and we tune Meta ads. Nothing is stored on your device before you answer, and your choice sticks for 6 months.