A mirco service ("API") to serve 2D locale views around a given token in an vector space ("word embedding"). Powered by GenSim's KeyedVectors. Deployed with Dokku.
Used for https://kommentare.vis.one, more information: https://github.com/jfilter/ptf-kommentare.
- install with Pipenv
- create a folder
data
and put keyedvector models in it ('filename.model'). The filenames will be used later on as endpoints in the API - pipenv run python app.py
curl localhost:5000/filename?q=test
- create Dokku app etc., set env variable
FILTER_PRODUCTION
dokku storage:mount the-app-name /home/some/folder:/data
and put models in that folder (see above)- Create Dokku redis service and link it
git push dokku
MIT.