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:

Early Exploration of Large Language Models on Python

With the current hype on artificial intelligence and platforms like OpenAI’s ChatGPT, I decided it’s about time I explore. I’m not going to lie, I’m not exactly excited about a company named OpenAI being a closed source, for profit platform; however, this has been one of the reason I decided to explore offline, open, and self hosted solutions (in the hopes of creating my own models). If you recall I’ve experimented with python and machine learning in the past, look no further than my 2016 Test your machine learning blog post.