A simple wrapper of "jieba" and "wordcloud" in Python 3.
|
|
před 7 roky | |
|---|---|---|
| README.md | před 7 roky | |
| example.in | před 7 roky | |
| pos.txt | před 7 roky | |
| wordfreq.py | před 7 roky |
wordcloud, PIL, matplotlib, numpy, and jiebawget 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).