word2vec was written in plain C, but some gotcha forbidded it to be compiled on Mac OS X:
-
Non-standard header
<malloc.h>instead of<stdlib.h>. -
Non portable
gziphandling in demo scripts.
This repository tries to fix them. See "Issue 1: Build for Mac?" for more info.
Updated to r37 (revision date: Dec 18, 2013).
I'll try to keep track of original word2vec project.
-
Download the code:
git clone https://github.com/William-Yeh/word2vec-mac.git -
Run
maketo compile word2vec tool -
Run the demo scripts:
./demo-word.shand./demo-phrases.sh
Of course, official word2vec page hosted at Google Code.
Apache License 2.0, same as original project.