Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielfrg/word2vec
Python interface to Google word2vec
https://github.com/danielfrg/word2vec
doc2vec python word2vec
Last synced: about 1 month ago
JSON representation
Python interface to Google word2vec
- Host: GitHub
- URL: https://github.com/danielfrg/word2vec
- Owner: danielfrg
- License: apache-2.0
- Archived: true
- Created: 2013-08-25T21:45:08.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2023-04-06T22:45:49.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T13:10:04.998Z (10 months ago)
- Topics: doc2vec, python, word2vec
- Language: C
- Homepage:
- Size: 6.42 MB
- Stars: 2,548
- Watchers: 108
- Forks: 630
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# NOT MAINTAINED
- I have not used this code in a long time
- No issues or PRs can be created
- Latest release doesn't work with newer versions of numpy
- I recommened moving to a native alternative in Tensorflow or PyTorch# word2vec
[](https://pypi.org/project/word2vec/)
[](http://github.com/danielfrg/word2vec/actions/workflows/test.yml)
[](https://codecov.io/gh/danielfrg/word2vec?branch=master)
[](http://github.com/danielfrg/word2vec/blob/master/LICENSE.txt)Python interface to Google word2vec.
Training is done using the original C code, other functionality is pure Python with numpy.
## Installation
```
pip install word2vec
```### Compilation
The installation requires to compile the original C code using `gcc`.
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](https://github.com/zhangyafeikimi/word2vec-win32).
## Usage
Example notebook: [word2vec](https://nbviewer.org/github/danielfrg/word2vec/blob/main/examples/word2vec.ipynb)
The default functionality from word2vec is available with the following commands:
- `word2vec`
- `word2phrase`
- `word2vec-distance`
- `word2vec-word-analogy`
- `word2vec-compute-accuracy`Experimental functionality on doc2vec can be found in this example:
[doc2vec](https://nbviewer.org/github/danielfrg/word2vec/blob/main/examples/doc2vec.ipynb)