-
Book Overview & Buying
-
Table Of Contents
Natural Language Processing Fundamentals [Instructor Edition]
By :
Sentiment analysis is a type of text classification. Sentiment analysis models are usually trained using supervised datasets. Supervised datasets are a kind of dataset that are labeled with the target variable – usually a column that specifies the sentiment value in the text. This is the value we want to predict in the unseen text.
In this exercise, we will load data that could be used to train a sentiment analysis model. For this exercise, we will be using three datasets, namely Amazon, Yelp, and IMDB. Follow these steps to implement this exercise:
import pandas as pd
pd.set_option('display.max_colwidth', 200)This imports the pandas library. It also sets the display width to 200 characters so that more of the review text is displayed on the screen.
Change the font size
Change margin width
Change background colour