Predicting Sentiments in Words

This chapter presents the following recipes:

  • Building a Naive Bayes classifier
  • Logistic regression classifier
  • Splitting the dataset for training and testing
  • Evaluating the accuracy using cross-validation
  • Analyzing the sentiment of a sentence
  • Identifying patterns in text using topic modeling
  • Application of sentiment analyses

Get Raspberry Pi 3 Cookbook for Python Programmers - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.