SkillAgentSearch skills...

WordCloud

用python进行文本分词并生成词云

Install / Use

/learn @fuqiuai/WordCloud
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

wordCloud

用python进行文本分词并生成词云

需要安装的包

  • sudo pip3 install jieba
  • sudo pip3 install wordcloud
  • wordcloud包依赖于Pillow,numpy,matplotlib

其他

  • 分词采用结巴分词,并支持自定义字典
  • 分词结果进行词频统计分析,并导出
  • 词云图可自己设定背景图(英文词云图不需先进行分词)

运行结果

运行demo.py,会生成相应的的词云图,和“doc/词频统计.txt”
eg:输入“alice.txt”的词云图如下: image
十九大报告全文的词云图如下:
image

Related Skills

View on GitHub
GitHub Stars448
CategoryDevelopment
Updated1mo ago
Forks108

Languages

Python

Security Score

80/100

Audited on Feb 19, 2026

No findings