Skip to main content

Wrapper for Google word2vec

Project description

word2vec

travis-ci appveyor

Python interface to Google word2vec.

Training is done using the original C, other functionality is pure python + numpy.

Installation

I recommend the Anaconda python distribution

pip install word2vec

Wheel: Wheels packages for OS X and Windows are provided on Pypi on a best effort sense. The code is quite easy to compile so consider using: --no-use-wheel on Linux and OS X.

Linux: There is no wheel support for linux so you have to compile the C code. The only requirement is gcc. You can override the compilation flags if needed: CFLAGS='-march=corei7' pip install word2vec

Windows: Very experimental support based this win32 port

Usage

The easiest way is to look at this example: word2vec

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

  • 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.

Source Distribution

word2vec-0.10.0.tar.gz (61.0 kB view details)

Uploaded Source

File details

Details for the file word2vec-0.10.0.tar.gz.

File metadata

  • Download URL: word2vec-0.10.0.tar.gz
  • Upload date:
  • Size: 61.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for word2vec-0.10.0.tar.gz
Algorithm Hash digest
SHA256 0f81b56a6f2c0e418e5956f66dedf8d4bd186b23a34a38224063393b22e8deca
MD5 15fabec9c664afc4c8f87e299fca3127
BLAKE2b-256 4ba937d98a8923325031ce6d3d0154ffd70fd4d633c217cf0cab8bdd6c63f3c8

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page