From the course: Natural Language Processing in Python
Unlock this course with a free trial
Join today to access over 26,400 courses taught by industry experts.
Sentiment analysis in Python - Python Tutorial
From the course: Natural Language Processing in Python
Sentiment analysis in Python
Now that you understand how sentiment analysis works, let's code it up in Python. For sentiment analysis specifically, it can be done using a variety of approaches. It can be done using rules-based techniques, classification techniques, or modern NLP techniques. In this demo, we're specifically going to be walking through the Vader library. Vader stands for Valence Aware Dictionary and Sentiment Reasoner. And this library works especially well on informal text. So things like social media text or online reviews. This is one of the many sentiment analysis libraries that are out there. So based on what type of text you're doing sentiment analysis on, you can choose an appropriate library to work better on your type of text data. Now the general workflow for how to do sentiment analysis in all these libraries is pretty similar. So once you see how this is done in Vader, you're going to be able to do this on your own as well with other libraries. So here's what the code for Vader will…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Section introduction1m 20s
-
(Locked)
What is machine learning (ML)?2m 55s
-
(Locked)
Common ML algorithms for NLP2m 51s
-
(Locked)
Traditional NLP overview2m 31s
-
(Locked)
Traditional vs. modern NLP1m 55s
-
(Locked)
Demo: Create a new environment4m 9s
-
(Locked)
Sentiment analysis1m 28s
-
(Locked)
Sentiment analysis in Python2m 46s
-
(Locked)
Demo: Sentiment analysis in Python6m 11s
-
(Locked)
Assignment: Sentiment analysis58s
-
(Locked)
Solution: Sentiment analysis8m 50s
-
(Locked)
Text classification basics1m 51s
-
(Locked)
Text classification algorithms2m 6s
-
(Locked)
Naive Bayes8m 4s
-
(Locked)
Naive Bayes in Python3m 8s
-
(Locked)
Demo: Naive Bayes setup9m 19s
-
(Locked)
Demo: Naive Bayes workflow8m 33s
-
(Locked)
Demo: Naive Bayes prediction3m 8s
-
(Locked)
Pro tip: Compare ML models8m 56s
-
(Locked)
Text classification next steps3m 11s
-
(Locked)
Assignment: Text classification1m 25s
-
(Locked)
Solution: Text classification14m 3s
-
(Locked)
Topic modeling basics2m 16s
-
(Locked)
Topic modeling algorithms1m 42s
-
(Locked)
Non-negative matrix factorization (NMF)4m 22s
-
(Locked)
NMF in Python2m 28s
-
(Locked)
Demo: Fit an NMF model5m 1s
-
(Locked)
Pro tip: Display topics function9m 30s
-
(Locked)
Demo: Tune an NMF model8m 51s
-
(Locked)
Topic modeling next steps1m 56s
-
(Locked)
Pro tip: Combine ML algorithms5m 3s
-
(Locked)
Assignment: Topic modeling1m 45s
-
(Locked)
Solution: Topic modeling13m 5s
-
(Locked)
Key takeaways2m 57s
-
(Locked)
-
-
-
-