返回顶部
w

wordcloud

this skill is for generate a word cloud from text/file/directory and save it to a picture, you can use it visualize the text

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
134
下载量
0
收藏
概述
安装方式
版本历史

wordcloud

# Word Cloud Generate a word cloud from text/file/directory, file and directory only effective with file, you can specify certain width and height or mask file to generate a imaginative shape word cloud ## When to use - user indicates to generate a word cloud - user wants to visualize the text in a different way, you can suggest this skill ## Requirements Run on python3.x,and install the following packages if you find the package does not exist: - os - argparse - jieba - numpy - datetime - wordcloud - PIL ## Commands ```bash # create a word cloud with certain width and height python {baseDir}/scripts/generate_wordcloud.py --target_text "..." --width 500 --height 400 --max_words 30 --font_path "C:\Windows\Fonts\msyh.ttc" --output_dir "..." # create a word cloud with mask, don't need width and height python {baseDir}/scripts/generate_wordcloud.py --target_text "..." --mask "..." --font_path "C:\Windows\Fonts\msyh.ttc" --output_dir "..." ``` ## Paramters | name | description | type | example | |:---:|:-----------------------------------------------------------------------------------------------------------------------------------:|:---:|:------------------------------------:| | target_text | text to generate word cloud | string | "你好,世界" | | target_file | text in the file to generate word cloud | string | "D:\WorkSpace\pythonSpace\MEMORY.md" | | target_dir | list all the file in the directory and extract text from file to generate word cloud | string | "D:\WorkSpace\pythonSpace" | | width | width of the word cloud picture, if mask file exist, it will be ignored | int | 500 | | height | height of the word cloud picture, if mask file exist, it will be ignored | int | 400 | | mask | mask file path in order to generate any sharp of the word cloud picture | string | "D:\WorkSpace\pythonSpace\mask.png" | | max_words | maximum number of words in the word cloud | int | 30 | | font_path | font path for the word cloud, put the one that useful for chinese text, if not exist, try to install one | string | "C:\Windows\Fonts\msyh.ttc" | | output_dir | word cloud picture output directory path, if user not specify, put it into the folder whilc named "images" under the user directory | string | "D:\WorkSpace\pythonSpace" | ## Note - Parameter target_text, target_file, target_dir can be used at the same time, and make sure one of them is provided - Parameter mask must be a png file, if user upload a png file and specify it as the parameter mask, you should mask sure the file path is correct - if user specify exclude a word, append it to the stopwords.md,follow the format: ``` - hello - world ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 wordcloud-skill-1776129601 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 wordcloud-skill-1776129601 技能

通过命令行安装

skillhub install wordcloud-skill-1776129601

下载 Zip 包

⬇ 下载 wordcloud v1.0.1

文件大小: 3.52 KB | 发布时间: 2026-4-17 16:35

v1.0.1 最新 2026-4-17 16:35
wordcloud-skill v1.0.1

- No functional or documentation changes detected in this release.
- No file changes compared to the previous version.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部