Learning representations

Word2vec

Learning word embeddings

Follow the words
Two round, torsoless explorers enter a cavern of enormous arrows. One holds up a lantern; the other climbs over a vector, looking apprehensive. kingmanqueenwoman
01 · The prediction task1 / 18

Learn from the words around a word.

Skip-gram word2vec1Scroll to unfold · scroll back to revisit

1 Word2vec also has an alternative architecture, continuous bag of words (CBOW), which predicts the center word from the surrounding context words. It is not shown here.

2 This lesson uses full softmax and omits bias terms. The six-word, two-coordinate model has illustrative starting weights and demonstrates the calculations; it is not a useful semantic model. The final geometric sketches are separate illustrations, not results fitted to these sentences.

Works cited

Chris Olah (2014), Deep Learning, NLP, and Representations.

Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean (2013), Efficient Estimation of Word Representations in Vector Space.

Xin Rong, word2vec Parameter Learning Explained.

Back to the beginning ↑