Wrapper for Google word2vec
Project description
word2vec
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:
- The requirements are
gcc
andCython
- Runpip install Cython
prior to the installation. - You can override the compilation flags if needed:
W2V_CFLAGS='-march=corei7' pip install word2vec
Windows: There is some support for this support based on this win32 port. Use at your own risk.
Usage
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
Release history Release notifications | RSS feed
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.6.tar.gz
(61.8 kB
view details)
File details
Details for the file word2vec-0.10.6.tar.gz
.
File metadata
- Download URL: word2vec-0.10.6.tar.gz
- Upload date:
- Size: 61.8 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.44.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95aa222ff2d5c2559192414b794870d14a022016ba83f1bef0cf8cc185e41483 |
|
MD5 | c33ceec2335292be31f7fc8a7a75fb5e |
|
BLAKE2b-256 | 324feacdef7e9b89fa3e76781cff42376e2fdb56900e1f2f3c56a4724f2fd1f2 |