Word cloud generator shape

broken image
broken image

To get accurate shape use large datasets like lyrics of songs or wikipedia paragraphs.Īlso You can generate data directly by importing wikipedia and then scraping from wikipedia page. You can used any dataset consisting of words or numbers. width - height - background color - contour color - mask - collocations Step7: Plot the Wordcloud Step8: Save Image Step1: Import Required libraries Step2: Generate Data for wordcloud Step3: Clean Data - Use stopwords to remove words like 'is', 'but', 'and', etc - Remove spaces as well Step4: write function to plot wordcloud using matplotlib Step5: Import a shaped image to np array Step6: Generate wordcloud using WordCloud.

broken image