📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is a token in NLP?

A. A grammar rule
B. A password for a website
C. A type of neural network layer
D. A basic unit of text, such as a word, subword or character, used by a language model ✅

Correct Answer: D. A basic unit of text, such as a word, subword or character, used by a language model

Explanation

A token is the smallest piece of text a model reads; for example, 'unhappy' may split into 'un' and 'happy'.