Completing the Analogy

Vector Operations & SimilarityHard+30 XP+30

Completing the Analogy

A word-embedding model answers the analogy paris is to france as tokyo is to ___ by building the target vector

t⃗=france⃗−paris⃗+tokyo⃗\vec t = \vec{\text{france}} - \vec{\text{paris}} + \vec{\text{tokyo}}t=france−paris​+tokyo​

and returning the candidate whose embedding has the highest cosine similarity with t⃗\vec tt.

The three known words:

wordembedding
paris(2, 1, 2)(2,\, 1,\, 2)(2,1,2)
france(6, 2, 3)(6,\, 2,\, 3)(6,2,3)
tokyo(1, 3, 2)(1,\, 3,\, 2)(1,3,2)

The four candidates:

candidateembedding
china(16, 5, 2)(16,\, 5,\, 2)(16,5,2)
asia(14, 1, 6)(14,\, 1,\, 6)(14,1,6)
kyoto(5, 5, 2)(5,\, 5,\, 2)(5,5,2)
japan(10, 8, 5)(10,\, 8,\, 5)(10,8,5)

Which candidate does the model return?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.