Glossary

Tokenization

Dividing an input into the units a model processes, which may be words, word fragments, punctuation or other symbols.


Copy “−0.05 µm” from a PDF into a spreadsheet. The number looks tiny either way, but the minus sign and unit carry almost the whole meaning. A tokenizer may divide that short measurement into more pieces than you’d guess by looking at it.

Tokenization maps text or other inputs to model-specific units. The mapping affects context length, cost calculations and how a model represents scientific notation or uncommon names. Two models can receive visibly identical text as different token sequences.

Check a unit and a minus sign

Pass the exact string through the tokenizer for the model you’ll use. Now compare it with a version containing an ordinary hyphen or a different spelling of the unit. A word count can’t reveal which inputs use the same number of tokens.

Keep the original string when normalizing text for search. Otherwise a preprocessing step can lose a sign or unit before the model gets a chance to make its own mistake.