A simple wrapper of "jieba" and "wordcloud" in Python 3.

Xi Ruoyao 04a6c9fa1a Initial commit il y a 5 ans
README.md 04a6c9fa1a Initial commit il y a 5 ans
example.in 04a6c9fa1a Initial commit il y a 5 ans
wordfreq.py 04a6c9fa1a Initial commit il y a 5 ans

README.md

Wordfreq script

Prerequisites

  • Python 3
  • Python 3 modules: wordcloud, PIL, matplotlib, numpy, and jieba
  • The TTF/OTF file of the font you want to use

Example

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

Acknowlegement

And, special thanks to Lao She who authors example.in.