1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Natural Language Processing (NLP) in Python

Connected

अभ्यास

Visualizing word frequencies

Now that you've computed the most frequent words with and without stop words, it's time to visualize the differences. In this exercise, you'll use matplotlib to plot bar charts for both cases.

The following lists have been pre-loaded for you: top_words_without_stopwords, top_counts_without_stopwords, top_words_with_stopwords, top_counts_with_stopwords.

निर्देश

100 XP
  • Use plt.bar() to plot the top 10 word frequencies with stop words.
  • Use plt.bar() to plot the top 10 word frequencies without stop words.