How ChatGPT works · Lesson 2
Tokens: how AI reads text
Models don't read letters or whole words. They read tokens: common words stay whole, rarer words are split into pieces. In English, one token is about ¾ of a word.
Tokens matter because limits and prices are counted in tokens, and because some languages need many more tokens than English for the same meaning.
Try it Yourself: Use ChatGPT's real tokenizer (Tokenizer)
Exercises
- Challenge: write a sentence of at least 8 words that uses no more than 10 tokens. (Hint: short, common words.)
- Roughly how many English words fit in 1,000 tokens?
- Why might a chatbot struggle to count the letters in "strawberry"?