A simple wrapper of "jieba" and "wordcloud" in Python 3.
Xi Ruoyao c320792de3 Add Part of Speech table | 5 年之前 | |
---|---|---|
README.md | 5 年之前 | |
example.in | 5 年之前 | |
pos.txt | 5 年之前 | |
wordfreq.py | 5 年之前 |
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
See pos.txt
, origin gist by hscspring.
And, special thanks to Lao She who authors example.in
(Mr. Breeches, 1933).