A simple wrapper of "jieba" and "wordcloud" in Python 3.
|
|
6 лет назад | |
|---|---|---|
| .gitignore | 7 лет назад | |
| README.md | 6 лет назад | |
| example.in | 7 лет назад | |
| pos.txt | 7 лет назад | |
| wordfreq.py | 6 лет назад |
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 SourceHanSans11.ttf -t 60
You should use Source Han Sans font under the terms of SIL Open Font License 1.1.
See pos.txt, origin gist by hscspring.
And, special thanks to Lao She who authors example.in (Mr. Breeches, 1933).