From the course: Build Three Real-World Python Applications
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Solution: Analyze "Sense and Sensibility" - Python Tutorial
From the course: Build Three Real-World Python Applications
Solution: Analyze "Sense and Sensibility"
(bouncy music) - [Instructor] So how did that go? Were you able to gather some insights on the "Sense and Sensibility" novel for your friend Emily? If you felt overwhelmed with this challenge, do not worry. I will explain step by step what should have been filled in and what each line of code is doing. We begin with our word frequency distribution. So with these percent signs here, you would want to fill in nltk.frequency distribution, so FreqDist, and we want to use that tokens variable that we created above. And then again, I always recommend printing out the distribution once you're done. So again, note that this may take a little bit to run. So here we can see our frequency distribution, but again, like last time, it'll be nice to have us view the top common words because it cuts them off after the first few here. So over here in the viewing the 40 most common words, we will put fdist.most_common. We'll look at…
Contents
-
-
-
-
-
What is text analysis?2m 12s
-
(Locked)
Introducing Project Gutenberg and "Great Expectations"2m 5s
-
(Locked)
How to pull text data3m 33s
-
(Locked)
How to clean text data6m 34s
-
(Locked)
How to create a word cloud3m 39s
-
(Locked)
How to improve a word cloud3m 47s
-
(Locked)
How to analyze word frequency4m 10s
-
(Locked)
How to perform Vader sentiment analysis7m 28s
-
(Locked)
How to build a corpus and dictionary for topic modeling4m 36s
-
(Locked)
How to perform topic modeling6m 46s
-
(Locked)
Challenge: Analyze "Sense and Sensibility"2m 53s
-
(Locked)
Solution: Analyze "Sense and Sensibility"4m 55s
-
-