← All tools
EDTOOLKITS GUIDES

Word Vectors: Follow an Analogy's Offset and Nearest Neighbour

By Team Edtoolkits · AI learning

Compare hand-placed vector arithmetic with the approximate relationships found in learned embeddings.

Use the guide alongside the working tool.

Open Word Vectors (word2vec) →

Explore the lesson

Watch words settle on a map and an arrow carry man to woman.

Pick three words and do the arithmetic yourself.

Flip the memory card and answer the quick check.

A comparison to try

Try king minus man plus woman, then a capital-country example. Follow the resulting point and compare the ranked nearest words, excluding the input words from the candidate answers.

Read the result

The arithmetic subtracts one coordinate vector and adds another; the closest remaining word becomes the suggested analogy. The same geometric operation can describe a relation only when the space encodes that relation usefully.

A mistake to avoid

Fourteen words were placed by hand in two dimensions so these examples line up. Real word2vec coordinates are learned and analogies are approximate, incomplete and sometimes biased. A tidy arrow does not prove universal linguistic structure or factual correctness.

Teaching model and privacy

A teaching version: fourteen words placed by hand on a flat 2D map so the arrows line up. Real word2vec vectors have hundreds of learned numbers and analogies work only roughly. Everything runs in your browser.

Ready to apply this workflow?

Try Word Vectors (word2vec) →

Explore a related workflow

All practical guides →

Found unclear instructions or an unexpected result? Contact Team Edtoolkits.

YOUR BROWSER, YOUR CHOICE