A simple wrapper of "jieba" and "wordcloud" in Python 3.
Xi Ruoyao 04a6c9fa1a Initial commit | il y a 5 ans | |
---|---|---|
README.md | il y a 5 ans | |
example.in | il y a 5 ans | |
wordfreq.py | il y a 5 ans |
wordcloud
, PIL
, matplotlib
, numpy
, and jieba
wget https://bf.mengyan1223.wang/assets/fonts/{SourceHanSans.ttc,ttc2ttf.py}
python3 ttc2ttf.py SourceHanSans.ttc
./wordfreq.py -i example.in -o example.png -p n,ne -f SourceHanSans10.ttf -t 60
And, special thanks to Lao She who authors example.in
.