A Hebrew version of Semantle.
Extract word2vec model in repository. you can download one by following the instructions here.
pip install poetry
poetry install
install Docker Compose from here
build the game with:
docker build compose
populate mongodb with vectors from word2vec model by running populate.py
(make sure mongo db is running).
select secret word by running set_secret.py
(make sure redis and mongo are running).
configurations should be set by creating a config.yaml file with the relevant settings (see config.format.yaml). when running with docker compose, every change to configuration requires rebuilding.
You can run the game with:
python app.py
you should run and configure mongo and redis server (see "Configuring Databases" section). Word2Vec model was trained as described here
run the game with:
docker build up
There are some useful scripts in the scripts/
folder:
populate.py
: Given a Word2Vec model, will populate mongo collection used by the game.set_secret.py
: Well...semantle.py
: A CLI version of the game.Only for some of the logic right now. Sorry.