WordCloud
用python进行文本分词并生成词云
Install / Use
/learn @fuqiuai/WordCloudREADME
wordCloud
用python进行文本分词并生成词云
需要安装的包
sudo pip3 install jiebasudo pip3 install wordcloud- wordcloud包依赖于Pillow,numpy,matplotlib
其他
- 分词采用结巴分词,并支持自定义字典
- 分词结果进行词频统计分析,并导出
- 词云图可自己设定背景图(英文词云图不需先进行分词)
运行结果
运行demo.py,会生成相应的的词云图,和“doc/词频统计.txt”
eg:输入“alice.txt”的词云图如下:

十九大报告全文的词云图如下:

Related Skills
node-connect
334.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
82.1kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
82.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
334.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
