seniorNLP
How do transformers handle rare or unseen words?
Updated May 17, 2026
Short answer
They use subword tokenization like BPE or WordPiece to break rare words into known units.
Deep explanation
Transformers avoid OOV (out-of-vocabulary) issues using subword tokenization. Rare words are decomposed into frequent subunits, enabling generalization. FastText further uses character n-grams for robustness.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro