Python interface to Google word2vec.
Training is done using the original C code, other functionality is pure Python with numpy.
pip install word2vec
The installation requires to compile the original C code:
- The only requirement is
- 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.
Look at this example: word2vec
The default functionality from word2vec is also available from the command line as:
Experimental functionality on doc2vec can be found in this other example: doc2vec