changelabelinxml Skill
SkillFiles & storageBatch-modify label names in all XML annotation files under a specified directory (replace old_label with new_label). Use when the user mentions changing XML labels, modifying annotations, or batch-changing labels.
Use changelabelinxml Skill in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add changelabelinxml Skill and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the changelabelinxml Skill skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by coderwanfeng/python-office in skills/ruiming/change_label_in_xml/SKILL.md and read by ahel’s review.
修改 XML 标注文件中的 label
功能描述
批量修改指定目录下所有 XML 标注文件中的标签名(old_label 替换为 new_label)。
所属分类
office/skills/ruiming/change_label_in_xml/
调用方式
from skills.ruiming import change_label_in_xml
change_label_in_xml(
dir_path='./dataset',
old_label='cat',
new_label='dog'
)
参数说明
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
dir_path | str | 是 | - | 图片及标注文件的存放路径 |
old_label | str | 是 | - | 需要修改的标签 |
new_label | str | 是 | - | 修改后的标签 |
返回值
None
使用示例
from skills.ruiming import change_label_in_xml
change_label_in_xml(dir_path='./annotations', old_label='person', new_label='human')
原始函数
office.api.testApi.ruiming.change_label_in_xml
Signals
- GitHub stars
- 1k
- Forks
- 303
- Last commit
- Aug 2026
Advanced
- Item type
- skill
- Key
change-label-in-xml- Source
- github.com/coderwanfeng/python-office
github.com/coderwanfeng/python-office
Related picks
Skill · wshobson
The pick for Pythonpython-pro
Skill · jeffallan
The pick for Pythonpptx
Skill · anthropics
More in Files & storagedocx
Skill · anthropics
More in Files & storageresearch
Skill · mattpocock
More in Files & storageto-tickets
Skill · mattpocock
More in Files & storage