id
stringlengths 1
2
| type
stringclasses 5
values | difficulty
stringclasses 3
values | content
dict | metadata
dict |
---|---|---|---|---|
1 | couplet | medium | {
"question": "()。南雁归时更寂寥。",
"answer": "只觉魂销"
} | {
"author": "纳兰性德",
"dynasty": "清"
} |
2 | couplet | medium | {
"question": "故山有松月,()。",
"answer": "迟尔玩清晖"
} | {
"author": "李白",
"dynasty": "唐"
} |
3 | couplet | medium | {
"question": "(),议者死路衢。",
"answer": "边人不敢议"
} | {
"author": "杜甫",
"dynasty": "唐"
} |
4 | couplet | easy | {
"question": "牙璋辞凤阙,()。",
"answer": "铁骑绕龙城"
} | {
"author": "杨炯",
"dynasty": "唐"
} |
5 | couplet | easy | {
"question": "忽见陌头杨柳色,()。",
"answer": "悔教夫婿觅封侯"
} | {
"author": "王昌龄",
"dynasty": "唐"
} |
6 | couplet | hard | {
"question": "惊世间残暴竟如斯,()。",
"answer": "两洲血"
} | {
"author": "陈毅",
"dynasty": null
} |
7 | couplet | medium | {
"question": "坐看新落叶,()。",
"answer": "行上最高楼"
} | {
"author": "白居易",
"dynasty": "唐"
} |
8 | couplet | hard | {
"question": "问渠何旨意,()。",
"answer": "恐落凡人耳"
} | {
"author": "顾况",
"dynasty": "唐"
} |
9 | couplet | medium | {
"question": "(),飞鸟何时还。",
"answer": "浮云几处灭"
} | {
"author": "王缙",
"dynasty": "唐"
} |
10 | couplet | medium | {
"question": "(),薜萝若在眼。",
"answer": "想见山阿人"
} | {
"author": "谢灵运",
"dynasty": "南北朝"
} |
11 | couplet | medium | {
"question": "曾为大梁客,()。",
"answer": "不负信陵恩"
} | {
"author": "王昌龄",
"dynasty": "唐"
} |
12 | couplet | easy | {
"question": "(),园柳变鸣禽。",
"answer": "池塘生春草"
} | {
"author": "谢灵运",
"dynasty": "南北朝"
} |
13 | couplet | hard | {
"question": "冯公岂不伟,()。",
"answer": "白首不见招"
} | {
"author": "左思",
"dynasty": "晋"
} |
14 | couplet | medium | {
"question": "(),不堪听、急管繁弦。",
"answer": "憔悴江南倦客"
} | {
"author": "周邦彦",
"dynasty": "宋"
} |
15 | couplet | easy | {
"question": "(),万马齐喑究可哀。",
"answer": "九州生气恃风雷"
} | {
"author": "龚自珍",
"dynasty": "清"
} |
16 | couplet | hard | {
"question": "余既滋兰之九畹兮,()。",
"answer": "又树蕙之百亩"
} | {
"author": "屈原",
"dynasty": "战国"
} |
17 | couplet | medium | {
"question": "人生难得秋前雨,()。",
"answer": "乞我虚堂自在眠"
} | {
"author": "姜夔",
"dynasty": "宋"
} |
18 | couplet | easy | {
"question": "(),空回首、烟霭纷纷。",
"answer": "多少蓬莱旧事"
} | {
"author": "秦观",
"dynasty": "宋"
} |
19 | couplet | hard | {
"question": "(),花雨空坛。更无人处一凭栏。",
"answer": "秋草六朝寒"
} | {
"author": "朱彝尊",
"dynasty": "清"
} |
20 | couplet | medium | {
"question": "少年侠气,()。",
"answer": "交结五都雄"
} | {
"author": "贺铸",
"dynasty": "宋"
} |
21 | hint_words | easy | {
"question": "**誓**,*心***。",
"answer": "波澜誓不起,妾心古井水/波澜誓不起,妾心古井水"
} | {
"author": "孟郊",
"dynasty": "唐"
} |
22 | hint_words | hard | {
"question": "****醉,芙****。",
"answer": "美酒余杭醉,芙蓉即奉杯"
} | {
"author": "庾信",
"dynasty": "南北朝"
} |
23 | hint_words | medium | {
"question": "**兽**,**鸟**。",
"answer": "岩悬兽无迹,林暗鸟疑飞"
} | {
"author": "范云",
"dynasty": "南北朝"
} |
24 | hint_words | medium | {
"question": "有****,****莲。",
"answer": "有园多种橘,无水不生莲"
} | {
"author": "杜荀鹤",
"dynasty": "唐"
} |
25 | hint_words | medium | {
"question": "***梅***,**梅*。",
"answer": "大都来梅花是我,我是梅花"
} | {
"author": "景元启",
"dynasty": "元"
} |
26 | hint_words | medium | {
"question": "所****,焉****。",
"answer": "所遇无故物,焉得不速老"
} | {
"author": "《古诗十九首》",
"dynasty": "汉"
} |
27 | hint_words | medium | {
"question": "***熛***,******鸠。",
"answer": "奔霆飞熛歼人子,败井颓垣剩饿鸠"
} | {
"author": "鲁迅",
"dynasty": "现代"
} |
28 | hint_words | easy | {
"question": "******转,***赏***。",
"answer": "传语风光共流转,暂时相赏莫相违"
} | {
"author": "杜甫",
"dynasty": "唐"
} |
29 | hint_words | medium | {
"question": "*怜****,***绕**。",
"answer": "小怜初上琵琶,晓来思绕天涯"
} | {
"author": "王安国",
"dynasty": "宋"
} |
30 | hint_words | easy | {
"question": "过****,险****。",
"answer": "过了黄洋界,险处不须看"
} | {
"author": "毛主席",
"dynasty": "现代"
} |
31 | find_poetry | medium | {
"question": "请识别出一句七言唐诗(正序)\n不与世俱去\n美人在空谷\n惜哉时不遇\n我命绝今日\n上下同饮啄\n卓众来东下\n摘子防人到",
"answer": "世人遇我同众人"
} | {
"author": null,
"dynasty": null
} |
32 | find_poetry | easy | {
"question": "请识别出一句七言唐诗(正序)\n千秋惟此心\n未去朝天子\n绝漠冲风急\n漠南胡未空\n大笑向文士\n黄昏人定后\n明月临幽黑",
"answer": "秋天漠漠向昏黑"
} | {
"author": null,
"dynasty": null
} |
33 | find_poetry | hard | {
"question": "请识别出一句五言唐诗(乱序)\n我忆君诗最苦\n临相别也怀恨\n庭院慕寒时节\n枝头累累青梅\n堪比天真颜色",
"answer": "寒梅最堪恨"
} | {
"author": null,
"dynasty": null
} |
34 | find_poetry | medium | {
"question": "请识别出一句五字元曲(正序)\n难怪人离心不走\n空走了千遭万遭\n苟利国家生死以\n被以不慈之伪名\n坛场宫馆尽蓬蒿",
"answer": "离了利名场"
} | {
"author": null,
"dynasty": null
} |
35 | find_poetry | hard | {
"question": "请识别出一句五字宋词(乱序)\n早落先梧桐\n檐外三竿日\n我今对鳞羽\n吹起故乡情\n谷风转凄薄",
"answer": "今日风吹落"
} | {
"author": null,
"dynasty": null
} |
36 | find_poetry | easy | {
"question": "请识别出一句五字宋词(正序)\n天空海阔思何穷\n须识愁多暗损心\n殷勤纳谏论兴废\n比红得句寻花笑\n那知自己归来丧",
"answer": "何须论得丧"
} | {
"author": null,
"dynasty": null
} |
37 | find_poetry | medium | {
"question": "请识别出一句七言宋诗(正序)\n千唤不一回\n食闷飞不起\n江陵谪去时\n仙衣尽带风\n泪下如流泉\n雨洒石壁来\n飞上桃花面",
"answer": "唤起谪仙泉洒面"
} | {
"author": null,
"dynasty": null
} |
38 | find_poetry | hard | {
"question": "请识别出一句五言唐诗(乱序)\n翠钗金作股\n三十羽林将\n还应甲桂林\n见吾满面笑\n黄鹄游四海",
"answer": "三面黄金甲"
} | {
"author": null,
"dynasty": null
} |
39 | find_poetry | easy | {
"question": "请识别出一句六字元曲(正序)\n烟花雁行\n花是春心\n杨柳眉颦\n东园之柳\n有用真空\n不辨伪真",
"answer": "花花柳柳真真"
} | {
"author": null,
"dynasty": null
} |
40 | find_poetry | hard | {
"question": "请识别出一句七言明诗(正序)\n凉风吹过妆楼\n当年许我忘年\n小庭闲步徘徊\n眼中前事分明\n松柏一何累累\n但见茂林芳树\n碧桃枝上莺声",
"answer": "吹我庭前柏树枝"
} | {
"author": null,
"dynasty": null
} |
41 | find_poetry | easy | {
"question": "请从下面五句诗中找出一句五言唐诗:(正序)\n地势使之然\n天上分金镜\n有三秋桂子\n仙人垂两足\n鼎镬甘如饴",
"answer": "势分三足鼎"
} | {
"author": null,
"dynasty": null
} |
42 | find_poetry | medium | {
"question": "请从下面七句诗中找出一句七言宋诗:(正序)\n不如随分尊前醉\n指挥楚汉如旋蓬\n人人尽说江南好\n春蚕到死丝方尽\n不炼金丹不坐禅\n肯使江山付劫灰\n要休且待青山烂",
"answer": "不指南方不肯休"
} | {
"author": null,
"dynasty": null
} |
43 | find_poetry | medium | {
"question": "请从下面六句诗中找出一句宋词:(正序)\n除非问取黄鹂\n换了浅斟低唱\n醉舞狂歌欲倒\n叫秋木而长吟\n春风十里柔情\n明月前溪后溪",
"answer": "除了醉吟风月"
} | {
"author": null,
"dynasty": null
} |
44 | find_poetry | hard | {
"question": "请从下面五句诗中找出一句南北朝诗:(乱序)\n东林怀我师\n静夜四无邻\n君行逾十年\n雨过一蝉噪\n蝉噪野风秋",
"answer": "蝉噪林逾静"
} | {
"author": null,
"dynasty": null
} |
45 | find_poetry | hard | {
"question": "请从下面七句诗中找出一句唐诗:(乱序)\n每岁烟花一万重\n一去心知更不归\n深巷明朝卖杏花\n寒林空见日斜时\n柳外轻雷池上雨\n蒹葭杨柳似汀洲\n沾衣欲湿杏花雨",
"answer": "一汀烟雨杏花寒"
} | {
"author": null,
"dynasty": null
} |
46 | blank_filling | medium | {
"question": "闻道()酒,无钱亦可求。",
"answer": "成都"
} | {
"author": "李崇嗣",
"dynasty": "唐"
} |
47 | blank_filling | hard | {
"question": "()论未竟,已遭肉食骂。",
"answer": "陶公"
} | {
"author": "郑孝胥",
"dynasty": "清"
} |
48 | blank_filling | medium | {
"question": "人去空(),花飞半掩门。",
"answer": "流水"
} | {
"author": "秦观",
"dynasty": "宋"
} |
49 | blank_filling | easy | {
"question": "由来()地,不见有人还。",
"answer": "征战"
} | {
"author": "李白",
"dynasty": "唐"
} |
50 | blank_filling | medium | {
"question": "我不识君曾梦见,()了然光可烛。",
"answer": "瞳子"
} | {
"author": "苏轼",
"dynasty": "宋"
} |
51 | blank_filling | medium | {
"question": "九天阊阖开宫殿,()衣冠拜冕旒。",
"answer": "万国"
} | {
"author": "王维",
"dynasty": "唐"
} |
52 | blank_filling | easy | {
"question": "山一程,水一程,身向()那畔行,夜深千帐灯。",
"answer": "榆关"
} | {
"author": "纳兰性德",
"dynasty": "清"
} |
53 | blank_filling | hard | {
"question": "名都多妖女,京洛出()。",
"answer": "少年"
} | {
"author": "曹植",
"dynasty": "三国"
} |
54 | blank_filling | medium | {
"question": "()城东谁家子,窃听琴声碧窗里。",
"answer": "金陵"
} | {
"author": "李白",
"dynasty": "唐"
} |
55 | blank_filling | easy | {
"question": "今宵剩把银釭照,犹恐相逢是()。",
"answer": "梦中"
} | {
"author": "晏几道",
"dynasty": "宋"
} |
56 | blank_filling | hard | {
"question": "怅望()空吊影,正人间、鼻息鸣鼍鼓。",
"answer": "关河"
} | {
"author": "张元干",
"dynasty": "宋"
} |
57 | blank_filling | medium | {
"question": "不才明主弃,多病()疏。",
"answer": "故人"
} | {
"author": "孟浩然",
"dynasty": "唐"
} |
58 | blank_filling | easy | {
"question": "()如不赏,归卧故山秋。",
"answer": "知音"
} | {
"author": "贾岛",
"dynasty": "唐"
} |
59 | blank_filling | hard | {
"question": "()流日夜,客心悲未央。",
"answer": "大江"
} | {
"author": "谢朓",
"dynasty": "南北朝"
} |
60 | blank_filling | medium | {
"question": "愁与()应有约,年年同赴清秋。",
"answer": "西风"
} | {
"author": "史达祖",
"dynasty": "宋"
} |
61 | first_last_words | medium | {
"question": "衣******,******吼。",
"answer": "衣如飞鹑马如狗,临歧击剑生铜吼。"
} | {
"author": "李贺",
"dynasty": "唐"
} |
62 | first_last_words | easy | {
"question": "试******,******期。",
"answer": "试玉要烧三日满,辨材须待七年期。"
} | {
"author": "白居易",
"dynasty": "唐"
} |
63 | first_last_words | hard | {
"question": "紫******,******冰。",
"answer": "紫府仙人号宝灯,云浆未饮结成冰。"
} | {
"author": "李商隐",
"dynasty": "唐"
} |
64 | first_last_words | medium | {
"question": "渡*****,******手。",
"answer": "渡江天马南来,几人真是经纶手。"
} | {
"author": "辛弃疾",
"dynasty": "宋"
} |
65 | first_last_words | easy | {
"question": "烈***,***已。",
"answer": "烈士暮年,壮心不已。"
} | {
"author": "曹操",
"dynasty": "三国"
} |
66 | first_last_words | hard | {
"question": "逆******,******声。",
"answer": "逆胡未灭心未平,孤剑床头铿有声。"
} | {
"author": "陆游",
"dynasty": "宋"
} |
67 | first_last_words | medium | {
"question": "当***,******雄。",
"answer": "当场只手,毕竟还我万夫雄。"
} | {
"author": "陈亮",
"dynasty": "宋"
} |
68 | first_last_words | easy | {
"question": "停******,******然。",
"answer": "停杯投箸不能食,拔剑四顾心茫然。"
} | {
"author": "李白",
"dynasty": "唐"
} |
69 | first_last_words | hard | {
"question": "回****,****洲。",
"answer": "回首叫虞舜,杜若满芳洲。"
} | {
"author": "张孝祥",
"dynasty": "宋"
} |
70 | first_last_words | medium | {
"question": "人******,******歇。",
"answer": "人境不教车马近,醉乡莫放笙歌歇。"
} | {
"author": "吴文英",
"dynasty": "宋"
} |
English Readme see below
(README由Claude 3.5 Sonnet生成)
中国古诗词大模型评测基准
简介
这是一个专门用于评测大语言模型在中国古诗词理解和生成方面能力的基准测试集。该基准包含了一个多样化的测试数据集和完整的评测框架,可用于系统性地评估和比较不同模型在古诗词领域的表现。
数据集说明
数据集(poetry_benchmark.jsonl
)包含70个测试样本,涵盖以下维度:
题型分布:
- 对联补全
- 诗句填空
- 诗词识别
- 提示词补全
- 首尾互补
难度等级:
- 简单(easy)
- 中等(medium)
- 困难(hard)
朝代覆盖:
- 先秦至近现代
- 包括唐、宋、元、明、清等重要朝代
评测维度
评测框架从以下维度对模型进行全面评估:
- 整体准确率
- 不同题型的表现
- 不同难度等级的表现
- 不同朝代诗词的掌握程度
评测结果
模型 | blank_filling | couplet | find_poetry | first_last_words | hint_words | 总计 | 总正确率 |
---|---|---|---|---|---|---|---|
deepseek-chat | 7/15 | 9/20 | 0/15 | 7/10 | 0/10 | 23/70 | 32.86% |
yi-lightning | 6/15 | 10/20 | 0/15 | 4/10 | 2/10 | 22/70 | 31.43% |
qwen2.5-72b | 6/15 | 7/20 | 0/15 | 4/10 | 0/10 | 17/70 | 24.29% |
gpt-4o-2024-08-06 | 5/15 | 6/20 | 0/15 | 4/10 | 1/10 | 16/70 | 22.86% |
gemini-1.5-flash | 0/15 | 4/20 | 0/15 | 2/10 | 0/10 | 6/70 | 8.57% |
项目结构
.
├── poetry_benchmark.jsonl # 测试数据集
├── compare_results.py # 结果对比和可视化脚本
└── evaluation_results/ # 评测结果目录
├── evaluation_report.json # 评测报告
└── detailed_results.jsonl # 详细结果
使用方法
- 运行评测:
python evaluate_poetry.py --model <model_name> --output_dir evaluation_results
- 对比分析:
python compare_results.py
- 查看结果: 评测脚本会生成以下可视化结果:
- accuracy_comparison.html: 整体准确率对比
- accuracy_by_type.html: 不同题型准确率对比
- accuracy_by_difficulty.html: 不同难度准确率对比
- accuracy_by_dynasty.html: 不同朝代准确率对比
- radar_comparison.html: 多维度能力雷达图
输出格式
评测报告(evaluation_report.json)包含以下内容:
{
"overall": {
"total": 70,
"correct": 45,
"accuracy": 0.643
},
"by_type": {
"couplet": {...},
"blank_filling": {...},
...
},
"by_difficulty": {...},
"by_dynasty": {...}
}
(README generated by Claude 3.5 Sonnet)
Classical Chinese Poetry Benchmark for LLMs
Introduction
This is a benchmark designed to evaluate large language models' capabilities in understanding and generating Classical Chinese poetry. It includes a diverse test dataset and a comprehensive evaluation framework for systematically assessing and comparing different models' performance in the domain of Classical Chinese poetry.
Dataset Description
The dataset (poetry_benchmark.jsonl
) contains 70 test samples covering the following dimensions:
Question Types:
- Couplet completion
- Poetry line filling
- Poetry identification
- Hint-based completion
- First-last word completion
Difficulty Levels:
- Easy
- Medium
- Hard
Dynasty Coverage:
- From Pre-Qin to Modern Era
- Including Tang, Song, Yuan, Ming, Qing dynasties
Evaluation Dimensions
The framework evaluates models comprehensively across:
- Overall accuracy
- Performance by question type
- Performance by difficulty level
- Mastery of poetry from different dynasties
Evaluation Results
Model | blank_filling | couplet | find_poetry | first_last_words | hint_words | Total | Total Accuracy |
---|---|---|---|---|---|---|---|
deepseek-chat | 7/15 | 9/20 | 0/15 | 7/10 | 0/10 | 23/70 | 32.86% |
yi-lightning | 6/15 | 10/20 | 0/15 | 4/10 | 2/10 | 22/70 | 31.43% |
qwen2.5-72b | 6/15 | 7/20 | 0/15 | 4/10 | 0/10 | 17/70 | 24.29% |
gpt-4o-2024-08-06 | 5/15 | 6/20 | 0/15 | 4/10 | 1/10 | 16/70 | 22.86% |
gemini-1.5-flash | 0/15 | 4/20 | 0/15 | 2/10 | 0/10 | 6/70 | 8.57% |
Project Structure
.
├── poetry_benchmark.jsonl # Test dataset
├── compare_results.py # Comparison and visualization script
└── evaluation_results.<model_name>/ # Evaluation results directory
├── evaluation_report.json # Evaluation report
└── detailed_results.jsonl # Detailed results
Usage
- Run evaluation:
python evaluate_poetry.py --model <model_name> --output_dir evaluation_results.<model_name>
- Compare results:
python compare_results.py
- View results: The script generates the following visualizations:
- accuracy_comparison.html: Overall accuracy comparison
- accuracy_by_type.html: Accuracy comparison by question type
- accuracy_by_difficulty.html: Accuracy comparison by difficulty
- accuracy_by_dynasty.html: Accuracy comparison by dynasty
- radar_comparison.html: Multi-dimensional capability radar chart
Output Format
The evaluation report (evaluation_report.json) contains:
{
"overall": {
"total": 70,
"correct": 45,
"accuracy": 0.643
},
"by_type": {
"couplet": {...},
"blank_filling": {...},
...
},
"by_difficulty": {...},
"by_dynasty": {...}
}
- Downloads last month
- 19