Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 775 Bytes

README.md

File metadata and controls

9 lines (8 loc) · 775 Bytes

Setup

  1. Download GoogleNews-vectors-negative300.bin.gz from https://code.google.com/p/word2vec/
  2. conda create -n word2vec_demo python=2.7 ipython-notebook matplotlib pandas pip seaborn gensim; source ~/anaconda/bin/activate word2vec_demo; pip install flask-restful
  3. python word2vec_convert.py (takes 3+ minutes on my MacBook).
  4. python word2vec_api.py (takes 30 seconds on my MacBook).
  5. open -a Google\ Chrome --args --disable-web-security index.html (You might need to close Chrome if it's already open).

Example

https://raw.githubusercontent.com/mdbecker/word2vec_demo/master/example.png