In this video, learn how to use Python libraries to easily create a word cloud.
- [Instructor] In order to display the word cloud created in the previous example, we will use Matplotlib's pyplot function. Pyplot imshow method is sufficient to display the word cloud as a graphics image. The imshow method takes as input the word cloud object. We also set the axis to off to not show the axis lines. Finally, we execute the show command to actually display the word cloud. Let us run the code now. From the image shown, we see that the most common word used is data. This is followed by course, many and then Python. Colors in the word cloud change based on the frequency values for these words. You might notice that words like using, and want does not carry any meaning in the context of this word cloud and you might want to remove them. We will do so in the next video.
- Generating a word cloud
- Determining the sentiments of customers
- K-means clustering of text
- Predicting the classification of text documents
- Predictive text