Subword Tokenization
What is Subword Tokenization?
In one sentence: Subword tokenization splits words into common smaller pieces, so the model can handle any word using a limited vocabulary.
Common words stay whole, while rare words are built from familiar parts. This means a model never meets a word it cannot represent. It is like building any word out of a box of common LEGO blocks instead of needing a special block for every word.
What does Subword Tokenization look like?
"Unhappiness" might become "un," "happi" and "ness."
Why does Subword Tokenization matter?
Subword tokenization lets models handle new words, names, typos and many languages efficiently.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/subword-tokenization/">Subword Tokenization, explained simply</a> (The AI Math Dictionary)