1. 程式人生 > >python 制作wordcloud詞雲

python 制作wordcloud詞雲

ont ima plot 完成 .com span 文件 help 來源

pip install wordcloud

需要用到numpy pillow matplotlib

安裝完成以後

wordcloud_cli --text in.txt --imagefile out.png --mask in.png

text 是詞雲來源,mask 是背景框架 ,imagefile 輸出的文件

wordcloud_cli --help 查看所有支持的命令參數

實例:

技術分享圖片技術分享圖片

python 制作wordcloud詞雲