liveBook · Manning

GloVe

As explained in Data Without Labels

GloVe is an unsupervised word-representation model that learns vectors from global word co-occurrence frequencies.

GloVe is an unsupervised, frequency-based model that represents words as compact vectors learned from global co-occurrence patterns. Words used similarly receive similar representations, helping capture semantic relationships with far fewer dimensions than one-hot encoding. section 7.13 section 7.14

GloVe differs from related text-representation approaches in several practical ways:

  • Builds a co-occurrence matrix from how frequently words appear in context, rather than predicting context directly. section 7.14
  • Combines matrix factorization with local-context learning associated with Word2Vec. section 7.14
  • Captures relationships such as synonyms and correspondences between cities and zip codes. section 7.14
  • Produces compact, meaningful vectors that preserve contextual relationships more effectively than basic one-hot representations. section 7.13 section 7.20

Semantic relations in vector space

Word embeddings can encode analogous relationships: the vector relation from “men” to “women” is presented as similar to the relation from “king” to “queen.”

Figure 7.16 Word embeddings can be used to represent the relationships between words. For example, there is a relation from “men” to “women” that is similar to “king” to “queen” as both “men-women” and “king-queen” represent the male-female gender relationship.
figure

Use the figure to inspect how vector differences can express semantic relationships between word pairs. section 7.13

How Data Without Labels covers it

How deep it goes
Explains the working mechanism and implementation direction, but defers the mathematical foundation.
Examples
Illustrates semantic analogies such as men–women and king–queen, plus relationships involving synonyms, cities, and zip codes.
What it assumes
Builds from comparisons with one-hot encoding, bag-of-words, and Word2Vec while introducing co-occurrence-based representation.
What you can do after
Apply it via Python to generate compact word vectors and interpret their contextual relationships.
How it connects
Connects word embeddings with Word2Vec, co-occurrence matrices, matrix factorization, local context, and one-hot encoding.

Also explained in

Compare how 2 books explain GloVe →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Without Labels. The section links point to the parts of the book it draws on.