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 poetry
poetry install --no-root
at the repo root. This will install only the dependencies listed inpyproject.toml
without 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