课程: Hands-On AI: Build a Generative Language Model from Scratch
What is sentiment analysis? - Python教程
课程: Hands-On AI: Build a Generative Language Model from Scratch
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.