ShuGao0810 / word2vec

Python interface to Google word2vec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

word2vec

travis-ci

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:

  1. The only requirement is gcc.
  2. 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

About

Python interface to Google word2vec

License:Apache License 2.0


Languages

Language:C 54.4%Language:Python 44.3%Language:Makefile 0.8%Language:Shell 0.4%Language:Dockerfile 0.1%