Many people mistakenly believe that artificial intelligence systems, like language models, read text the same way humans do. However, AI doesn't actually read words—it processes tokens.
Tokenization is the process of breaking down text into smaller chunks called tokens, which can be words, subwords, or even characters. For example, the word "unhappiness" might be split into "un", "happiness", or "unhappiness" as one token, depending on the tokenizer. These tokens are then mapped to numbers, which the AI uses for computation. This allows models to handle new or rare words more effectively by recognizing familiar subword patterns.
In short, when you input a sentence, the AI sees a sequence of token IDs, not a human-readable string. This fundamental difference explains why AI can sometimes make strange typos or misinterpret misspellings.
Understanding tokenization is key to grasping how language models actually work—and why they don't "read" the way we do.