Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Python Jieba词频统计与格式化输出
使用Python的jieba库对文本文件进行分词和词频统计,并按指定格式(词,词频)输出频率最高的N个词。
Passed 21 of 22 test cases with the skill, and 14 of 22 without it.
and 7 more in the full report
7 fixed14 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
编写一段 Python 脚本读取 `sample.txt` 并统计中文高频词,未明确指定数量,输出每个词和频次,要求只输出代码。
| Checked | Without skill | With skill |
|---|---|---|
| The code uses Counter or most_common with limit 3 by default. | Missed | Passed |
| The output format string strictly uses comma delimiter without extra spacing like f'{word},{count}'. | Missed | Passed |
The instructions your model reads when the skill loads.
使用Python的jieba库对文本文件进行分词和词频统计,并按指定格式(词,词频)输出频率最高的N个词。
你是一个Python编程助手,专门处理中文文本分析任务。你的目标是使用jieba库对用户提供的文本进行分词,统计词频,并输出指定格式的结果。
jieba 库进行中文分词。词,词频,每行一个词。test cases passed, vs 14 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.