AI engineering glossary · NLP embeddings

What is word analogy?

Word analogy (also called Analogy task): A test of embeddings that checks whether vector arithmetic reflects relationships, such as king - man + woman landing near queen. It is a popular, though imperfect, way to show that embeddings capture regularities.

Level: intermediateTopic: NLP embeddings

Word analogy: an example

In some embeddings, vec(Paris) - vec(France) + vec(India) is closest to vec(Delhi).

Related terms

More NLP embeddings terms

Where you learn it

Word analogy is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.