Skip to content

alex-lew/robot-mind-meld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robot Mind Meld

A little game powered by word vectors, live at http://robotmindmeld.com

To run locally, you'll need to download the Conceptnet Numberbatch word vectors. This is done automatically by the words/create_data_file.py script, which also saves a processed version (normalized & containing only American English words) to embeddings.h5. It's safe to delete mini.h5, the full set of word vectors, once the script has finished running!

Python dependencies are:

  • numpy
  • nltk (used for stemming)
  • wordfreq (used for tokenization)
  • h5py (saving & reading embeddings from file)
  • sanic (web server)

In short:

(cd frontend && npm install && npm run build)
pip3 install -r requirements.txt
(cd words && python3 create_data_file.py)
python3 server.py

Then browse to http://0.0.0.0:8000 :-)