Python and Data Science Experiments (Exp8)

1. Experimental data

 (1) Training set

The training set contains 30,000 product reviews and is stored in the file 'review_train.csv'. Each row represents a product review, and the first column is the review score (label), which indicates the customer's rating for the current product, ranging from 1 to 5 points. The second column is the title of the comment, and the third column is the specific content of the comment. After the training data set is read in using pandas (pd.read_csv('review_train.csv', header=None, names=['rating', 'title', 'review'])), the screenshot is as follows:

Guess you like

Origin blog.csdn.net/qq_51314244/article/details/130565220