CtrlK
BlogDocsLog inGet started
Tessl Logo

txt2wordcloud

根据文本文件生成词云图片,支持自定义背景色。当用户提到词云、生成词云、文字云、词频可视化时使用。

72

Quality

87%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

txt2wordcloud Skill

根据指定的文本文件生成词云图像

功能描述

根据指定的文本文件内容,生成词云图片。

所属分类

office/skills/image/txt2wordcloud/

调用方式

from office.skills.image import txt2wordcloud

txt2wordcloud(
    filename='./text.txt',
    color='white',
    result_file='wordcloud.png'
)

参数说明

参数类型必填默认值说明
filenamestr-文本文件的路径
colorstr"white"词云的背景颜色
result_filestr"your_wordcloud.png"生成的词云图像文件名

返回值

None

使用示例

from office.skills.image import txt2wordcloud
txt2wordcloud(filename='./article.txt', result_file='./my_wordcloud.png')

原始函数

office.api.image.txt2wordcloud

Repository
CoderWanFeng/python-office
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.