Computers don't understand words — they understand numbers. For a long time the best we could do was give each word an arbitrary index: "cat" = 4271, "dog" = 4272. Those numbers carry no meaning; "cat" and "dog" are just as far apart as "cat" and "the".
In 2013 a team at Google led by Tomas Mikolov published a paper that changed this. Their idea: train a neural network to predict which words appear near each other in a large body of text. As a side effect of learning to predict context, the network discovers that words with similar contexts should point in similar directions. The resulting word vectors — also called word embeddings — make meaning geometric.
The payoff is startling. Once you have these vectors, you can do arithmetic on concepts. Subtract the vector for "man" from the vector for "king", add the vector for "woman", and you land near the vector for "queen". The famous equation is not a trick — it falls out of the geometry automatically.
Comments
Loading comments...