Install any skill in seconds. Free to start, no credit card required.
Get Started Free →coderwanfeng/change_label_in_xml
批量修改指定目录下所有 XML 标注文件中的标签名(old_label 替换为 new_label)。当用户提到改 XML 标签、修改标注、批量改 label 时使用。
Passed 22 of 22 test cases with the skill, and 3 of 22 without it.
and 36 more in the full report
19 fixed3 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 19 test cases the skill fixed. Same model, same prompt, with and without the skill.
In directory `/var/data/xml_annos`, replace label 'phone' with 'mobile'.
| Checked | Without skill | With skill |
|---|---|---|
| Uses skills.ruiming.change_label_in_xml | Missed | Passed |
| Sets dir_path parameter to '/var/data/xml_annos' | Missed | Passed |
| Sets old_label parameter to 'phone' | Missed | Passed |
The instructions your model reads when the skill loads.
修改 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
test cases passed, vs 3 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.