## GloVe: Global Vectors for Word Representation frog nearest neighbors | Litoria | Leptodactylidae | Rana | Eleutherodactylus -------------------------|:-------------------------:|:-------------------------:|:-------------------------:|:-------------------------:|
  • frogs
  • toad
  • litoria
  • leptodactylidae
  • rana
  • lizard
  • eleutherodactylus | ![](http://nlp.stanford.edu/projects/glove/images/litoria.jpg) | ![](http://nlp.stanford.edu/projects/glove/images/leptodactylidae.jpg) | ![](http://nlp.stanford.edu/projects/glove/images/rana.jpg) | ![](http://nlp.stanford.edu/projects/glove/images/eleutherodactylus.jpg) man -> woman | city -> zip | comparative -> superlative :-------------------------:|:-------------------------:|:-------------------------:|:-------------------------:| ![](http://nlp.stanford.edu/projects/glove/images/man_woman_small.jpg) | ![](http://nlp.stanford.edu/projects/glove/images/city_zip_small.jpg) | ![](http://nlp.stanford.edu/projects/glove/images/comparative_superlative_small.jpg) We provide an implementation of the GloVe model for learning word representations. Please see the [project page](http://nlp.stanford.edu/projects/glove/) for more information on the paper. ## 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.
    ## 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 http://github.com/stanfordnlp/glove $ cd glove && make $ ./demo.sh The demo.sh scipt 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 [demo.sh](https://github.com/stanfordnlp/GloVe/blob/master/demo.sh) or the [src/README.md](https://github.com/stanfordnlp/GloVe/tree/master/src) ### License All work contained in this package is licensed under the Apache License, Version 2.0. See the include LICENSE file.