def show(self):
wordcloud = WordCloud(
font_path=u'./static/simheittf/simhei.ttf',
background_color="black", max_words=40, margin=5, width=1000, height=800)
wordcloud = wordcloud.generate(self.seg_text)
plt.figure()
plt.imshow(wordcloud)
plt.axis("off")
plt.show()
评论列表
文章目录