Skip to content

Instantly share code, notes, and snippets.

@kurasaiteja
Created July 7, 2020 14:24
Show Gist options
  • Save kurasaiteja/88b591920c636b93affab0b90e5ab4da to your computer and use it in GitHub Desktop.
Save kurasaiteja/88b591920c636b93affab0b90e5ab4da to your computer and use it in GitHub Desktop.
stopwords = set(STOPWORDS)
stopwords.update(["ra", "ga", "na", "ani", "em", "ki", "ah","ha","la","eh","ne","le"])
# Generate a word cloud image
wordcloud = WordCloud(stopwords=stopwords, background_color="white").generate(text)
# Display the generated image:
# the matplotlib way:
plt.figure( figsize=(10,5))
plt.imshow(wordcloud, interpolation='bilinear')
plt.axis("off")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment