#Code by Leon Wolber https://www.kaggle.com/leonwolber/reddit-nlp-topic-modeling-prediction # The wordcloud plt.figure(figsize=(16,13)) wc = WordCloud(background_color="black", max_words=1000, max_font_size= 200, width=1600, height=800) wc.generate(" ".join(ls)) plt.title("Most discussed terms", fontsize=20) plt.imshow(wc.recolor( colormap= 'viridis' , random_state=17), alpha=0.98, interpolation="bilinear", ) plt.axis('off')
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter