A query vector can be scored against displayed word vectors by exact dot products. This lesson compares the integer scores and returns only the vector-label with the largest score.
highlighted = computed this step
A displayed query vector
Use the displayed query vector q=(3,1). It is scored against the same displayed word vectors: cat=(3,1), kitten=(2,1), and car=(1,3).
q=(3,1)
Compute exact dot scores
The score for cat is 3 times 3 plus 1 times 1, which is 10. The same rule gives kitten score 7 and car score 6.
q⋅cat=10,q⋅kitten=7,q⋅car=6
Pick the largest
Compare the exact scores: 10 is larger than 7 and 6, so the displayed choice is cat. That output is only a vector-label choice from this table.