A Vector for a Word

A token's ID tells us which word it identifies, but not how that word relates to another. A vector gives us several numerical coordinates whose learned relationships can support useful comparisons.

14 sections · 15 questions · 4 coding challenges

1 / 14

Could a Word's Surroundings Tell Us Something About It?

BOTIE

If we encounter an unfamiliar word, the sentences around it often offer clues. It may occur beside words about food, movement, or measurement. A numerical representation could retain some of those recurring relationships instead of merely giving the word an arbitrary ID.

Harris' 1954 work on distributional structure examined language through the environments in which its elements occur. This is an important linguistic foundation for later representations based on word context. It did not introduce today's embedding algorithms, but it supplied a reason to treat usage patterns as evidence.

We can begin with a list of context counts, one coordinate per context. Words used in similar environments then have similar lists. Later methods compress or learn those coordinates. The vector represents regularities in the observed language, not a complete dictionary definition, and words with opposing meanings can still be close when they occur in similar sentences.

Sources for this history