Skip to main content

Sentiment Analysis and Prediction in Python

Learn how to build a machine learning model predicting sentiment.
Justin Saddlemyer
Justin Saddlemyer

Create Your Free Account

Practice and track your progress.

Continue with GoogleBy continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Code along with us on

Code Along ↗

In this live training, you will build a machine learning model to predict the sentiment of a review using the contents of the review.

We walk through all steps of the machine learning process, from importing the text data, tokenizing and vectorizing the text samples up to training a classifier and evaluating its performance.

Key takeaways

  • Load in and inspect a csv file with Python

  • Tokenize and vectorize text data to build numerical features for prediction

  • Build a classifier that can predict the sentiment of a review

  • Calculate and assess the performance of a classifier

Materials

  • Sign up for DataLab (it's free!)

Topics

Related

Tutorial

Python Sentiment Analysis Tutorial

Tutorial

NLTK Sentiment Analysis Tutorial for Beginners