From the course: Hands-On AI: Build a Generative Language Model from Scratch

Unlock this course with a free trial

Join today to access over 23,200 courses taught by industry experts.

What is sentiment analysis?

What is sentiment analysis?

- In this chapter, we're going to take a look at sentiment analysis. Using Pure Python, we're going to implement a model that takes a comment from a social media website and tells us whether it's possibly positive or possibly negative. Now, the way we'll train our model is by giving it a bunch of comments that are labeled either positive or negative. Using labeled data to train your model like this is considered a form of supervised learning. This is different than what we did with our text completion model, where we simply gave it a bunch of text in an unsupervised manner. So put on your coder hats, because it's time for sentiment analysis from scratch.

Contents