stanfordnlp / GloVe

Software in C and data files for the popular GloVe model for distributed word representations, a.k.a. word vectors or embeddings
Apache License 2.0
6.86k stars 1.51k forks source link

word2vec's distance and word-analogy scripts are ported to python for… #7

Closed ferhtaydn closed 8 years ago

ferhtaydn commented 8 years ago

word2vec's distance and word-analogy scripts are ported to python for GloVe.

usage:

> python eval/python/word_analogy.py --vocab_file=vocab.txt --vectors_file=vectors.txt
Enter three words (EXIT to break): paris france istanbul

> python eval/python/distance.py --vocab_file=vocab.txt --vectors_file=vectors.txt
Enter word or sentence (EXIT to break): istanbul
ghost commented 8 years ago

This looks great! Thank you for the contribution.

ferhtaydn commented 8 years ago

thanks :+1: