From the course: Build Three Real-World Python Applications
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
How to analyze word frequency - Python Tutorial
From the course: Build Three Real-World Python Applications
How to analyze word frequency
- [Instructor] Word clouds are a fun way to visually see what words are popular in a set of text data. But it could be difficult to see what words there are and exactly how frequently they occur in our novel. This is where word frequency analysis is useful. With word frequency analysis, We can create a word frequency distribution to see what words occur in the text and how frequently they show up. We will begin doing this by creating our fdist variable for our frequency distribution, and equal it to the nltk package and use the FreqDist function. And we want to look at our tokens variable. Remember, this tokens variable is what we made earlier in our data cleaning section, where we split the text step by word, got rid of the stop words, and kept only the words that were three letters or longer. If we go down the line and type in our fdist variable, we can then print it out and see what our output is. When you run this…
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
-
-