This python script tells you how positive the sentiment of the reddit homepage is so you know what you are in for. It leverages Cohere's classify library and uses the top 100 posts from the /r/mademesmile and /r/politics subreddits as training data for the postive and negative sentiments respectively.
- clone repo locally
- add an
.env
var file to your local repository that has your cohere API key defined under theCOHERE_API_KEY
variable - run
python3 main.py