Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 863 Bytes

readme.md

File metadata and controls

45 lines (37 loc) · 863 Bytes

イミトル(Semantle日本語版) - 単語類似度パズル

このリポジトリはJohannes GätjenさんのSemantlichをフォークしたものです。

設置 Settings

Create virtualenv

python3.10 -m venv semantle-jp
source semantle-jp/bin/activate

Install requirements

pip install -r requirements.txt

Download Word2Vec

cd data
wget https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.ja.300.vec.gz
gzip -d cc.ja.300.vec.gz

Save word2vec in dba

cd ..
python process_vecs.py

(optional) Regenerate secrets

python generate_secrets.py

Start flask/gunicorn (on ssh)

export FLASK_APP=semantle
nohup gunicorn semantle:app &

Restart after pull

ps aux | grep gunicorn
kill -HUP <gunicorn pid>