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