wordcloudgenerator
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "wordcloudgenerator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-54725afa38e1ddb3b6a5b8c34d430064d33a74641fe06971110a9a364255c1a2. Verify the upstream source and version against https://skillhub.cn/skills/user_1ed74797/wordcloudgenerator before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Word cloud generator: creates word clouds from text, supports Chinese word segmentation, and allows customization of font, color, size, and related parameters.
Introduction source: third_party · user_1ed74797 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: 词云图生成器
version: 1.0.0
description: 从文本内容生成词云图,支持中文分词,可自定义字体、颜色、尺寸等参数
author: 管理员
dependency:
- jieba>=0.42.0
- wordcloud>=1.9.0
- matplotlib>=3.7.0
- Pillow>=10.0.0词云图生成器
任务目标
- 本 Skill 用于:将用户提供的文本内容生成词云图
- 能力包含:中文分词、词频统计、词云图生成、自定义样式
- 触发条件:用户要求生成词云图、文字云、关键词可视化
前置准备
依赖说明
jieba>=0.42.0
wordcloud>=1.9.0
matplotlib>=3.7.0
Pillow>=10.0.0
支持的输入
- 直接文本内容
- 文本文件路径
- 多个关键词(逗号分隔)
操作步骤
标准流程
-
接收文本
- 用户提供文本内容或文件路径
- 确认文本不为空
-
参数配置(可选)
- 输出图片路径(默认
output/wordcloud.png) - 图片宽度(默认 1680)
- 图片高度(默认 1050)
- 最大词数(默认 200)
- 背景颜色(默认白色)
- 字体文件路径(默认使用系统字体)
- 输出图片路径(默认
-
执行生成
- 调用脚本:
python scripts/wordcloud_generator.py - 输入参数通过 JSON 传递
- 调用脚本:
-
返回结果
- 返回生成的图片路径
- 返回词频统计信息(前 20 个高频词)
参数说明
输入参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| text | string | 是 | 文本内容 |
| output_path | string | 否 | 输出图片路径 |
| width | int | 否 | 图片宽度(默认 1680) |
| height | int | 否 | 图片高度(默认 1050) |
| max_words | int | 否 | 最大词数(默认 200) |
| background_color | string | 否 | 背景颜色(默认 white) |
| font_path | string | 否 | 字体文件路径 |
输出格式
{
"success": true,
"image_path": "output/wordcloud.png",
"word_count": 150,
"top_words": [
{"word": "人工智能", "count": 25},
{"word": "机器学习", "count": 18}
]
}
使用示例
示例 1:从文本生成词云
用户输入:
请根据以下文本生成词云图:人工智能是计算机科学的一个分支,它企图了解智能的实质,并生产出一种新的能以人类智能相似的方式做出反应的智能机器...
智能体处理:
- 提取文本内容
- 调用脚本生成词云
- 返回生成的图片
示例 2:自定义参数
用户输入:
帮我生成一个词云图,文本是:...,宽度 800,高度 600,最大 50 个词
智能体处理:
- 解析文本和参数
- 调用脚本生成词云
- 返回生成的图片
注意事项
- 中文文本需要使用支持中文的字体文件
- 文本过长时会自动截断
- 生成的图片保存在
output/目录下 - 如果指定字体文件不存在,会使用系统默认字体
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供词云图生成功能,支持中文分词和自定义样式
- 适用于文本可视化、关键词分析等通用场景
Highlights
- 触发条件明确:生成词云图、文字云、关键词可视化
- description 覆盖多种用户表达方式
Areas to improve
-
缺少明确的 Phase 划分 Reported severity: Minor
操作步骤未使用 Phase 进行清晰划分
Recommendation: 建议将操作步骤划分为 Phase 1/2/3 等,增强结构清晰度
Highlights
- 文档结构完整,包含任务目标、前置准备、操作步骤、参数说明、使用示例
- 提供了详细的输入输出参数说明
Highlights
- 依赖说明清晰,列出了所有必需的 Python 包
- 参数配置完整,支持多种自定义选项
- 在注意事项中说明了字体文件不存在时的处理机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.