Bird
0
0

Given word vectors for Rome, Italy, and France, which method best finds the word vector X that completes the analogy:

hard📝 Conceptual Q8 of 15
NLP - Word Embeddings
Given word vectors for Rome, Italy, and France, which method best finds the word vector X that completes the analogy:

Rome is to Italy as X is to France?
AUse the dot product of <code>Rome</code> and <code>France</code> vectors
BCompute <code>Rome + Italy + France</code> and select the vector with highest magnitude
CFind the vector with the smallest Euclidean distance to <code>Rome</code>
DCompute <code>Italy - Rome + France</code> and find the closest vector in the vocabulary
Step-by-Step Solution
Solution:
  1. Step 1: Understand analogy vector arithmetic

    Analogies are solved by vector arithmetic: B - A + C to find D.
  2. Step 2: Evaluate options

    Compute Italy - Rome + France and find the closest vector in the vocabulary correctly applies this formula and searches for closest vector. Others misuse vector operations.
  3. Final Answer:

    Compute Italy - Rome + France and find the closest vector in the vocabulary -> Option D
  4. Quick Check:

    Analogy = B - A + C, then nearest neighbor search [OK]
Quick Trick: Use B - A + C and nearest neighbor search [OK]
Common Mistakes:
MISTAKES
  • Adding all vectors without subtraction
  • Using magnitude or dot product incorrectly
  • Ignoring nearest neighbor search

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NLP Quizzes