Simple Python web server running Natural Language Processing endpoints, used directly by the nodejs server.
Used for classifying comments (toxicity, etc), and eventually send reports to moderators.
We can also use Jigsaw and https://perspectiveapi.com/ in the future.
The project uses pdm as a package manager.
pdm installpdm run src/nlp/toxicity_classifier.pyFor simplicity sake, both nlp and back are ran in the same machine and communicate via port within the same localhost.
TODO: containerize
See COPYING.