Simple CLI for Categorizing and Sentiment of Text

Now that I’ve spent some time with huggingface.co, specifically their NPL Course (natural language processing) I wanted to combine a couple of the learnings into a simple python script. What I ended up with was a script that could both categorize using a zero-shot-classification model, as well as get sentiment using a sentiment-analysis model. You can interact with this script in one of two ways, first by sending a string as input during execution: