So, this is sort of hacked together from a lot of data sources and the code is a mess. Here's a hello world of how to get up and running.
-
Install Python requirements using
pip install -r requirements.txt. -
Download
GoogleNews-vectors-negative300.bin.gzfrom here, and extract it into the parent directory of this project. -
Run
python dump-vecs.pyto create an SQLite database and store the main vectors. -
Run
python dump-hints.pyto create a hints pickle. Wait a very long time. -
Run
python store-hints.pyto import the pickle into the DB. -
Run
python semantle.pyfor the web server.
black . to reformat all Python files