📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is the difference between a token embedding and a contextual embedding?

A. A token embedding is always longer
B. A contextual embedding is fixed
C. There is no difference
D. A token embedding is fixed for a word, while a contextual embedding changes with surrounding words ✅

Correct Answer: D. A token embedding is fixed for a word, while a contextual embedding changes with surrounding words

Explanation

Static embeddings give one vector per word; contextual embeddings from Transformers vary by context.