FIG word cloud visualization

#jieba is an excellent word of Chinese third-party libraries
precise mode jieba.lcut (s), full mode jieba.lcut (s, cut_all = True) , the search engine mode jieba.lcut_for_search (s)
can also add custom phrases

FIG #wordcloud word cloud visualization
W = worldcloud.WordCloud ()
/w.generate(txt) W loaded text
/w.to_file(filename) to save the image
shape /w.imread(pic) of the specified word cloud

Guess you like

Origin www.cnblogs.com/sck-clj/p/11569926.html