Skip to content
FunCoding

txt2wordcloud

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

Star
1,359
License
Apache-2.0
Last commit
Aug 20, 2026

skills/image/txt2wordcloud/SKILL.md

View on GitHub

txt2wordcloud Skill

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

功能描述

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

所属分类

office/skills/image/txt2wordcloud/

调用方式

from skills.image import txt2wordcloud

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

参数说明

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

返回值

None

使用示例

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

原始函数

office.api.image.txt2wordcloud

Similar Skills

blender-motion-state-inspection

AFaffaan-m/ECC278k4,046 new stars in the last 7 days

Official

slack-gif-creator

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

algorithmic-art

Generate flow fields and particle systems with p5.js, using seeded randomness for original algorithmic art.

ANanthropics/skills181k1,119 new stars in the last 7 days

thinking-out-loud

SHShubhamsaboo/awesome-llm-apps141k808 new stars in the last 7 days

moneyprinterturbo-video

HAharry0703/MoneyPrinterTurbo130k1,722 new stars in the last 7 days

complain

PApaperclipai/paperclip101k2,948 new stars in the last 7 days