Skip to content

danielfrg/word2vec

main
Switch branches/tags
Code

Latest commit

There are small typos in:
- CONTRIBUTING.md
- word2vec/wordvectors.py

Fixes:
- Should read `dropped` rather than `droped`.
- Should read `development` rather than `developmentt`.
a76a75f

Git stats

Files

Permalink
Failed to load latest commit information.

word2vec

pypi build coverage 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

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.

Usage

Example notebook: word2vec

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