Step 1 of 6· See the pieces
See the pieces
One word can be several tokens. Here, playing becomes play and ing.
A tokenizer converts text into pieces and identifiers. Its vocabulary is its set of available pieces. A token ID labels a piece; it is not a meaning or a score.
Text in
"playing"
2 tokens · in order
- "play"V1
- "ing"V2
Join the pieces
"playing"
This teaching tokenizer matches the longest available piece, from left to right. If no piece matches, it keeps one encoded text unit (a Unicode code point), which may be only part of a visible character. Real tokenizers use their own vocabularies and rules; splits need not follow syllables.