import matplotlib.pyplot as plt
from wordcloud import WordCloud
import jieba
text_from_file_with_apath = open('/Users/hecom/23tips.txt').read()
wordlist_after_jieba = jieba.cut(text_from_file_with_apath, cut_all = True)
wl_space_split = " ".join(wordlist_after_jieba)
my_wordcloud = WordCloud().generate(wl_space_split)
plt.imshow(my_wordcloud)
plt.axis("off")
plt.show()
相关文章
- 03-21jieba 库的使用和好玩的词云
- 03-21词云
- 03-21jieba分词以及wordcloud词云
- 03-21jieba+wordcloud 按词频生成词云
- 03-21通过bilibili_api获取bilibili弹幕+绘制词云的方法!
- 03-21词云技术jieba实例(仅供参考)
- 03-21词云
- 03-21jieba库使用和好玩的词云
- 03-21jieba库的使用和词云
- 03-21050 实例12-*工作报告词云