📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is the attention mechanism’s role in handling word order with positional encoding?

A. It combines positional information with attention so the model knows both what words mean and where they appear ✅
B. It ignores word order completely
C. It deletes positional encodings
D. It sorts words alphabetically

Correct Answer: A. It combines positional information with attention so the model knows both what words mean and where they appear

Explanation

Positional encodings are added to embeddings, so attention can use both meaning and position when relating tokens.