word2vec

1 min read Original article ↗

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.

Installation

pip install word2vec

The installation requires to compile the original C code:

Compilation

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.

Usage

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

Download files

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

Source Distribution

File details

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

File metadata

  • Download URL: word2vec-0.11.1.tar.gz
  • Upload date:
  • Size: 42.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for word2vec-0.11.1.tar.gz
Algorithm Hash digest
SHA256 222d8ffb47f385c43eba45e3f308e605fc9736b2b7137d74979adf1a31e7c8b4
MD5 ac7b0e65307aa0e410c7cbb6c1883339
BLAKE2b-256 119edc6d96578191b6167cb1ea4a3fe3edeed0dce54d3db21ada013b2b407d65

See more details on using hashes here.