Python interface to Google word2vec
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 135 commits behind danielfrg:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
word2vec-c
word2vec
.gitignore
LICENSE.txt
MANIFEST.in
README.md
setup.py

README.md

word2vec

Python interface to Google word2vec.

Training is done using the original C code plus some patches, the other funcionality is pure python + numpy.

Installation

pip install word2vec

I highly recommend the use the Anaconda python distribution

Usage

The easiest way is to look at this examples: word2vec and word clusters

The default functionality from word2vec is also available from the command line:

  • word2vec
  • word2phrase
  • w2v-distance
  • w2v-word-analogy
  • w2v-compute-accuracy

Issues

Some people reported that they needed to do this if running OS X: http://stackoverflow.com/questions/15590169/ld-library-not-found-for-lgfortran-mac-symlink-issue

Development

  1. create a bin directory
  2. run the make file inside word2vec-c
  3. export the new bin directory to PATH

Tests require py.test