6 Sentiment classification: Large movie-review dataset

This chapter covers

  • Using text and word frequency (Bag of Words) to represent sentiment
  • Building sentiment classifier using logistic regression and with softmax
  • Measuring classification accuracy
  • Computing ROC curve and measure classifier effectiveness
  • Submitting your results to the Kaggle challenge for movie reviews

One of the magic uses of machine learning that impresses everyone nowadays is teaching the computer to learn from text. With social media, SMS text, Facebook Messenger, What’s App, Twitter, and other sources generating hundreds of billions of text messages a day, there is no shortage of text to learn from.

TIP Check out this famous infographic demonstrating the abundance of ...

Get Machine Learning with TensorFlow, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.