Skip to main content

Wrapper for Google word2vec

Project description


PyPI Testing Coverage Status License

Python interface to Google word2vec.

Training is done using the original C code, other functionality is pure Python with numpy.


pip install word2vec

The installation requires to compile the original C code:


In order to compile the original C code a gcc compiler is needed.

You can override the compilation flags if needed:

WORD2VEC_CFLAGS='-march=corei7' pip install word2vec

Windows: There is basic some support for this support based on this win32 port.


Example notebook: word2vec

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

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

Experimental functionality on doc2vec can be found in this other example: doc2vec

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for word2vec, version 0.11.1
Filename, size File type Python version Upload date Hashes
Filename, size word2vec-0.11.1.tar.gz (42.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page