How to print top words from wordcloud

Viewed 1718

I have a word cloud generated using the wordcloud library. I got an image of the wordcloud. Now I want a list of the top x words of the wordcloud. How do I do that? I don't want the most frequent words. I want the most frequent and most important words which is what the image shows.

Here is the wordcloud library: link

1 Answers

Is this what you want?

print(wordcloud.words_.keys())
Related