Why can a chatbot’s tokenizer—a program that breaks text into smaller pieces—still process the never-seen misspelling “strwberry”?
Show answer & explanation
Answer: It splits the unfamiliar string into smaller known chunks, such as letter groups.
It removes the odd letters until what remains matches a familiar word. — Wrong—it is true that the splitter does not treat the odd letters as a normal whole word, but it does not discard them. Ignoring letters would change the string, not encode it. The splitter preserves the input by representing those letters with smaller known pieces.
It splits the unfamiliar string into smaller known chunks, such as letter groups. ✓ — Right—the tokenizer does not need the whole word to be known. It can break “strwberry” into smaller chunks—subword pieces, characters, or bytes—that are already in its vocabulary. That fallback lets it represent typos and names that never appeared as complete entries.
It checks the whole string against a fixed vocabulary of complete words. — Wrong—a dictionary check is how spellcheckers often work, but this splitter is not limited to whole known words. If it only accepted complete dictionary entries, it would fail on typos and new names. Instead, it can represent unknown strings as smaller known pieces.
More Technology questions
- Why can a satellite redness index flag rusting Arctic rivers but still fail to tell which streams are chemically hazardous?
- A service publishes a fresh random number every minute, plus a public log in which each entry carries a fingerprint of the entry before it. What does that chaining add?
- Why can a wall of lava lamps used as a 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?
- Why does a physical noise source provide security against an attacker who knows the code, while a phone game shuffle does not?
- At parking-lot speed, why do quiet EVs need alert sounds before tire noise helps?