Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
R Deep Learning Projects

You're reading from  R Deep Learning Projects

Product type Book
Published in Feb 2018
Publisher Packt
ISBN-13 9781788478403
Pages 258 pages
Edition 1st Edition
Languages

Chapter 5. Sentiment Analysis with Word Embeddings

In this chapter, we turn to the problem of sentiment analysis. Sentiment analysis is an umbrella term for a number of techniques to figure out how a speaker feels about a certain topic or piece of content.

A vanilla case study of sentiment analysis is polarity. Given a document or text string (for instance, a Tweet, a review, or a comment on a social network), the aim is to determine whether the author feels good, bad, or neutral about the item or topic in question.  

At first look, this problem might seem trivial: A lookup table with positive and negative words, and simply counting the word frequencies should do, right? Not so fast. Here are a few examples of why this is tricky:

  • Their decadent desserts made me hate myself
  • You should try this place if you love cold food
  • Disliking cake is not really my thing

What can we see in these examples?

  • Negative terms used in a possibly positive sense
  • Positive terms used sarcastically
  • Two negative terms that...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}