课程: Hands-On Natural Language Processing
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Sentiment analysis with VADER
- [Instructor] Let's practice how to do sentiment analysis with Valence Aware Dictionary and sEntiment Reasoner, VADER. At the end of the exercise, you will be able to calculate your own sentiment score and label them according to polarity. We'll be using the sentiment labeled sentences dataset from the open source UCI Machine Learning Repository and the Python library, VADER. First, download and unzip the dataset using the wget and unzip commands. Then combine the subsets of the dataset into a single data frame called df using pandas. Now, let's view information about the combined data frame using df.info and df itself. The output shows a total of 2,784 rows or reviews and their pre-labeled sentiment, where zero means negative and one means positive. Now, we can go ahead and generate the VADER sentiment score based on the review column. Looking at the data frame again, we can see we now have a new column named…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。