A typo like 'strwberry' is unfamiliar. Why can a tokenizer still handle it?
Show answer & explanation
Answer: Falls back to subwords
Checks a dictionary — Tokenization is not a normal dictionary lookup. The tokenizer has a learned vocabulary and rules for breaking text into available pieces. That is why it can process made-up strings without first deciding whether they are real words.
Falls back to subwords ✓ — Subword tokenization gives the model a graceful fallback. If the whole misspelled word is not a known chunk, it can be decomposed into smaller chunks or bytes that are in the vocabulary. The neat part is that a compression trick also becomes a way to survive typos and names.
Ignores the odd letters — The odd letters are not supposed to be ignored; they are represented by smaller available pieces. Subword tokenization was invented partly so rare or unknown words would not disappear outside a fixed word list. Dropping letters would turn a typo into a different word, which is not what tokenization is for.
More Technology questions
- Why can Cloudflare's lava-lamp camera feed improve encryption even though the cryptographic software that consumes it is deterministic?
- If an attacker learns a pseudorandom generator's seed and algorithm after watching several outputs, why can the later outputs become reconstructable?
- If a phone game shuffle and a physical noise source both look messy, what makes only one useful for security against someone who knows the code?
- At parking-lot speed, why do quiet EVs need alert sounds before tire noise helps?
- Why does the Ferrari 296 cabin sound duct take sound before exhaust treatment?
- Why do sound engineers tune engine orders instead of just making a Ferrari-like exhaust louder?
