Natural Language Processing · Level 1 of 5
Token
A discrete unit in a model's input or output sequence.
A token is not necessarily a whole word.
Example
One English word is represented by two subword units.
Listen to the definition and example
Audio transcript
Token. A discrete unit in a model's input or output sequence. A token is not necessarily a whole word. For example: One English word is represented by two subword units.
Explore this concept
Why it matters
This helps you understand how language becomes data and where processing can lose meaning.
Technical detail
Text maps to integer IDs drawn from a fixed vocabulary. Token boundaries depend on the tokenizer and may not match word boundaries.
Common misconception
One word is not always one token.
Related concepts
Quick recall question
Try answering before looking back at the definition.