From the course: Natural Language Processing in Python

Unlock this course with a free trial

Join today to access over 26,400 courses taught by industry experts.

Assignment: Sentiment analysis with LLMs

Assignment: Sentiment analysis with LLMs - Python Tutorial

From the course: Natural Language Processing in Python

Assignment: Sentiment analysis with LLMs

“

Your first assignment for this section is on sentiment analysis, and you have a message from Oscar Wynn. You may remember him way back from the machine learning section when he asked you to do sentiment analysis, and he has a follow-up to that message. He says, regarding my earlier message, can you do sentiment analysis using hugging face and LLMs, instead of Vader and rules, and compare the results? Thank you. You can see in this case, he's attached the movie reviews sentiment CSV file. And that has the movie reviews as well as the sentiment scores from Vader. So your key objectives for this assignment are first, if you haven't already, create a new NLP Transformers environment that has all the correct installs. To do this, you can either watch the demo a few lessons prior to this, or you can find all the code within the Environments folder in the course resources. And then from that environment, you're going to launch a Jupyter Notebook. And from there, you can start coding. So your…

Contents