by stanfordnlp

stanfordnlp / GloVe

GloVe model for distributed word representation

5.0K Stars 1.2K Forks Last release: about 5 years ago (1.2) Apache License 2.0 162 Commits 2 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

GloVe: Global Vectors for Word Representation

| nearest neighbors of
frog | Litoria | Leptodactylidae | Rana | Eleutherodactylus | | --- | ------------------------------- | ------------------- | ---------------- | ------------------- | | Pictures | | | | |

| Comparisons | man -> woman | city -> zip | comparative -> superlative | | --- | ------------------------|-------------------------|-------------------------| | GloVe Geometry | | | |

We provide an implementation of the GloVe model for learning word representations, and describe how to download web-dataset vectors or train your own. See the project page or the paper for more information on glove vectors.

Download pre-trained word vectors

The links below contain word vectors obtained from the respective corpora. If you want word vectors trained on massive web datasets, you need only download one of these text files! Pre-trained word vectors are made available under the Public Domain Dedication and License.

  • Common Crawl (42B tokens, 1.9M vocab, uncased, 300d vectors, 1.75 GB download):
  • Common Crawl (840B tokens, 2.2M vocab, cased, 300d vectors, 2.03 GB download):
  • Wikipedia 2014 + Gigaword 5 (6B tokens, 400K vocab, uncased, 300d vectors, 822 MB download):
  • Twitter (2B tweets, 27B tokens, 1.2M vocab, uncased, 200d vectors, 1.42 GB download):

Train word vectors on a new corpus

If the web datasets above don't match the semantics of your end use case, you can train word vectors on your own corpus.

$ git clone
$ cd glove && make
$ ./

The script downloads a small corpus, consisting of the first 100M characters of Wikipedia. It collects unigram counts, constructs and shuffles cooccurrence data, and trains a simple version of the GloVe model. It also runs a word analogy evaluation script in python to verify word vector quality. More details about training on your own corpus can be found by reading or the src/


All work contained in this package is licensed under the Apache License, Version 2.0. See the include LICENSE file.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.