Vibeleaderboard
← All Intel
Intel / article

Learning Word Embedding

Source
lilianweng.github.io
Author
Lilian Weng
Date
Photo by Huy Phan on Unsplash

Context

Word give words learned numeric representations that reflect patterns in their surrounding text. Lilian Weng's 2017 tutorial explains skip-gram: choose a word, use nearby words as prediction targets, and adjust the 's vectors to improve those predictions.

The examples come from the text's word positions, so people need not label each pair's semantic relationship. Words used in similar contexts can acquire similar representations, making relationships available to a model through compact vectors. These similarities reflect usage in the training corpus. They are a learned representation of those patterns, rather than a direct test that the model understands every meaning of a word.

Terms in this piece · Glossary
  • embedding — A list of numbers representing a piece of text's meaning, so that similar meanings end up numerically close and can be searched.
  • Model — A computational system that uses learned patterns to produce an output from information supplied to it.
  • Training — The process that adjusts a model using examples and a measure of how well it performs.
  • Process — A running instance of a program, with its own working memory, open files and identity.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Key quotes

“One of the simplest transformation approaches is to do a one-hot encoding in which each distinct word stands for one dimension of the resulting vector and a binary value indicates whether the word presents (1) or not (0).”

Read the source lilianweng.github.io
More from Lilian Weng
Recommended reads