Word Bubble

PHOTO EMBED

Wed Oct 20 2021 02:17:44 GMT+0000 (Coordinated Universal Time)

Saved by @MH100 #python

#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')
content_copyCOPY

Creates a word bubble using several parameters

https://www.kaggle.com/mpwolke/reddit-confessions