Bird
0
0

You want to find the word that fits the analogy: Paris is to France as Tokyo is to ? Using pre-trained word vectors, which approach is best to find the answer?

hard📝 Application Q15 of 15
NLP - Word Embeddings
You want to find the word that fits the analogy: Paris is to France as Tokyo is to ? Using pre-trained word vectors, which approach is best to find the answer?
ACalculate vector: France - Tokyo + Paris, then find closest word vector
BCalculate vector: Tokyo - Paris + France, then find closest word vector
CCalculate vector: Paris + France - Tokyo, then find closest word vector
DCalculate vector: Tokyo + Paris - France, then find closest word vector
Step-by-Step Solution
Solution:
  1. Step 1: Understand analogy vector arithmetic

    Analogies use the formula: word2 - word1 + word3 to find the missing word. Here, Paris is word1, France is word2, Tokyo is word3.
  2. Step 2: Apply formula to this analogy

    Calculate Tokyo - Paris + France to get the vector representing the answer.
  3. Final Answer:

    Calculate vector: Tokyo - Paris + France, then find closest word vector -> Option B
  4. Quick Check:

    Analogy vector = word3 - word1 + word2 [OK]
Quick Trick: Use analogy formula: word3 - word1 + word2 [OK]
Common Mistakes:
MISTAKES
  • Swapping order of subtraction and addition
  • Adding all vectors without subtraction
  • Using wrong words in formula

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NLP Quizzes