📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is padding in tokenization?

A. Translating text to another language
B. Encrypting the tokens
C. Adding special tokens to make sequences in a batch the same length ✅
D. Removing all punctuation

Correct Answer: C. Adding special tokens to make sequences in a batch the same length

Explanation

Padding equalises sequence lengths in a batch so they can be processed together efficiently.