This is a toy example that ranks a set of content items based on their sentiment using nltk.
- Create a virtual environment using your preferred method
pip install poetrypoetry install --no-rootat the repo root. This will install only the dependencies listed inpyproject.tomlwithout trying to install the current project as a package
Just run pytest
You can start the server (python ranking_server.py), and then run caller.py to send it data
To add a new dependency use poetry add <dependency> and if it is package specific please move to extra in pyproject.toml