brainax

What is an embedding

An embedding is a long list of numbers, usually hundreds or thousands of them, that a model uses to describe the meaning of a word or phrase. Think of it as the coordinates of a point on a map, except with hundreds of axes instead of two. The model picks these numbers during training by looking at which words a word tends to appear next to.

Words with close meanings get close points: "cat", "dog" and "puppy" sit together. That's how search by meaning works: "what to do on a rainy day in London" finds an article called "museums and cafés for bad weather", even though the words barely match. Recommendations often work in a similar way. But there's no human-style understanding here: the model doesn't know what a cat is, it knows what a cat is similar to.

Covered in the lessonEmbeddings: meaning as coordinatesOpen the lesson →

More terms from this course