Datasets:
|
Download README.md from TCMLLM/LingLan: direct link, hf CLI and curl.
- Browser
- Download file 11.1 kB
-
https://huggingface.co/datasets/TCMLLM/LingLan/resolve/main/README.md
- Command line
-
hf download hf://datasets/TCMLLM/LingLan/README.md
-
curl -L -o README.md https://huggingface.co/datasets/TCMLLM/LingLan/resolve/main/README.md
11.1 kB
| language: | |
| - zh | |
| license: cc-by-4.0 | |
| pretty_name: LingLanMedBench Traditional Chinese Medicine Benchmark Dataset | |
| tags: | |
| - traditional-chinese-medicine | |
| - benchmark | |
| - clinical-reasoning | |
| configs: | |
| - config_name: chinese_patent_medicine_knowledge_single_choice | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/chinese_patent_medicine_knowledge/中成药知识问答_单选题.jsonl" | |
| - split: hardset | |
| path: "data/hardset/chinese_patent_medicine_knowledge/中成药知识问答_单选题.jsonl" | |
| - config_name: chinese_patent_medicine_knowledge_fill_blank | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/chinese_patent_medicine_knowledge/中成药知识问答_填空题.jsonl" | |
| - split: hardset | |
| path: "data/hardset/chinese_patent_medicine_knowledge/中成药知识问答_填空题.jsonl" | |
| - config_name: chinese_patent_medicine_knowledge_multiple_choice | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/chinese_patent_medicine_knowledge/中成药知识问答_多选题.jsonl" | |
| - split: hardset | |
| path: "data/hardset/chinese_patent_medicine_knowledge/中成药知识问答_多选题.jsonl" | |
| - config_name: herbal_prescription_single_choice | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/decision_recognition/医家处方_选择题.jsonl" | |
| - split: hardset | |
| path: "data/hardset/decision_recognition/医家处方_选择题.jsonl" | |
| - config_name: treatment_method_single_choice | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/decision_recognition/医家治法_选择题.jsonl" | |
| - split: hardset | |
| path: "data/hardset/decision_recognition/医家治法_选择题.jsonl" | |
| - config_name: syndrome_single_choice | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/decision_recognition/医家辨证_选择题.jsonl" | |
| - split: hardset | |
| path: "data/hardset/decision_recognition/医家辨证_选择题.jsonl" | |
| - config_name: herbal_prescription | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/diagnostic_therapeutic_reasoning/医家处方.jsonl" | |
| - split: hardset | |
| path: "data/hardset/diagnostic_therapeutic_reasoning/医家处方.jsonl" | |
| - config_name: treatment_method | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/diagnostic_therapeutic_reasoning/医家治法.jsonl" | |
| - split: hardset | |
| path: "data/hardset/diagnostic_therapeutic_reasoning/医家治法.jsonl" | |
| - config_name: syndrome | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/diagnostic_therapeutic_reasoning/医家辨证.jsonl" | |
| - split: hardset | |
| path: "data/hardset/diagnostic_therapeutic_reasoning/医家辨证.jsonl" | |
| - config_name: fundamental_tcm_knowledge_single_choice | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/fundamental_tcm_knowledge/知识图谱知识问答_单选题.jsonl" | |
| - split: hardset | |
| path: "data/hardset/fundamental_tcm_knowledge/知识图谱知识问答_单选题.jsonl" | |
| - config_name: fundamental_tcm_knowledge_fill_blank | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/fundamental_tcm_knowledge/知识图谱知识问答_填空题.jsonl" | |
| - split: hardset | |
| path: "data/hardset/fundamental_tcm_knowledge/知识图谱知识问答_填空题.jsonl" | |
| - config_name: fundamental_tcm_knowledge_multiple_choice | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/fundamental_tcm_knowledge/知识图谱知识问答_多选题.jsonl" | |
| - split: hardset | |
| path: "data/hardset/fundamental_tcm_knowledge/知识图谱知识问答_多选题.jsonl" | |
| - config_name: classical_text_entity_extraction | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/information_extraction/实体抽取_古籍.jsonl" | |
| - split: hardset | |
| path: "data/hardset/information_extraction/实体抽取_古籍.jsonl" | |
| - config_name: clinical_record_entity_extraction | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/information_extraction/实体抽取_病历.jsonl" | |
| - split: hardset | |
| path: "data/hardset/information_extraction/实体抽取_病历.jsonl" | |
| - config_name: tcm_licensing_examination | |
| data_files: | |
| - split: fullset | |
| path: "data/fullset/tcm_licensing_examination/中医考试题.jsonl" | |
| - split: hardset | |
| path: "data/hardset/tcm_licensing_examination/中医考试题.jsonl" | |
| <h2 align="center"> | |
| <img width="600" src="./assets/linglan_logo_horizontal.png" alt="LingLanMedBench logo" /><br /> | |
| LingLanMedBench Traditional Chinese Medicine Benchmark Dataset | |
| </h2> | |
| <p align="center"> | |
| <a href="https://arxiv.org/abs/2602.01779"><img src="https://img.shields.io/badge/Paper-arXiv-B31B1B?style=plastic&logo=arxiv&logoColor=white" alt="Paper: arXiv" height="28" /></a> | |
| | |
| <a href="https://linglan.top/"><img src="https://img.shields.io/badge/Website-Leaderboard-2F9984?style=plastic" alt="Website: Leaderboard" height="28" /></a> | |
| | |
| <a href="https://github.com/TCMAI-BJTU/LingLan"><img src="https://img.shields.io/badge/Code-GitHub-24292F?style=plastic&logo=github&logoColor=white" alt="Code: GitHub" height="28" /></a> | |
| | |
| <a href="https://modelscope.cn/datasets/TCMAIBJTU/LingLan"><img src="https://img.shields.io/badge/Dataset-ModelScope-624AFF?style=plastic" alt="Dataset: ModelScope" height="28" /></a> | |
| </p> | |
| <p align="center"> | |
| <a href="README_zh.md">中文说明</a> | |
| </p> | |
| <p align="center"> | |
| <strong>5</strong> evaluation domains · | |
| <strong>13</strong> benchmark tasks · | |
| <strong>25,620</strong> Full items · | |
| <strong>5,200</strong> Hard items | |
| </p> | |
| <p align="center"> | |
| <a href="#load-from-hugging-face">Load the data</a> · | |
| <a href="#tasks-and-counts">Tasks and counts</a> · | |
| <a href="data/README.md#paper-evaluation-results">Explore all results</a> | |
| </p> | |
| LingLanMedBench is an expert-curated benchmark for evaluating large language models on Traditional Chinese Medicine knowledge and clinical reasoning across five domains and 13 benchmark tasks. This repository distributes the labelled data; evaluation code is maintained in the [GitHub project](https://github.com/TCMAI-BJTU/LingLan). | |
| The counts above treat each joint diagnostic and therapeutic reasoning case as one item. Its labels are stored in three files, giving **15 task configurations and 30 JSONL files**, with **29,620 Full and 6,000 Hard file rows**. Every record has `id`, `task`, and `answer`. | |
| **Hard is a subset of Full, not an independent train/test partition.** Each Hard file contains 400 records with the same IDs and labels as Full. Do not concatenate the two sets as independent examples. | |
| ## Load from Hugging Face | |
| Install the dependencies: | |
| ```bash | |
| python -m pip install datasets | |
| ``` | |
| Load one task and one set: | |
| ```python | |
| from datasets import load_dataset | |
| full = load_dataset("TCMLLM/LingLan", name="fundamental_tcm_knowledge_multiple_choice", split="fullset") | |
| hard = load_dataset("TCMLLM/LingLan", name="fundamental_tcm_knowledge_multiple_choice", split="hardset") | |
| print(len(full), len(hard)) # 1919, 400 | |
| print(hard[0]["id"], hard[0]["answer"]) | |
| ``` | |
| The README YAML maps each task configuration to its two JSONL files. No custom dataset loading script or `trust_remote_code=True` is required. | |
| Choose a configuration from the table below. `fullset` and `hardset` are the split names. Always specify the task; different tasks have different answer schemas. | |
| ## Tasks and counts | |
| | Configuration / `task` | Full | Hard | | |
| | --- | ---: | ---: | | |
| | `chinese_patent_medicine_knowledge_single_choice` | 1,998 | 400 | | |
| | `chinese_patent_medicine_knowledge_fill_blank` | 2,000 | 400 | | |
| | `chinese_patent_medicine_knowledge_multiple_choice` | 1,950 | 400 | | |
| | `herbal_prescription_single_choice` | 2,000 | 400 | | |
| | `treatment_method_single_choice` | 2,000 | 400 | | |
| | `syndrome_single_choice` | 2,000 | 400 | | |
| | `herbal_prescription` | 2,000 | 400 | | |
| | `treatment_method` | 2,000 | 400 | | |
| | `syndrome` | 2,000 | 400 | | |
| | `fundamental_tcm_knowledge_single_choice` | 1,962 | 400 | | |
| | `fundamental_tcm_knowledge_fill_blank` | 1,959 | 400 | | |
| | `fundamental_tcm_knowledge_multiple_choice` | 1,919 | 400 | | |
| | `classical_text_entity_extraction` | 2,000 | 400 | | |
| | `clinical_record_entity_extraction` | 2,000 | 400 | | |
| | `tcm_licensing_examination` | 1,832 | 400 | | |
| ## Structure and fields | |
| ```text | |
| LingLan/ | |
| ├── README.md | |
| ├── README_zh.md | |
| ├── task_configs.json | |
| ├── data_manifest.json | |
| └── data/ | |
| ├── README.md | |
| ├── README_zh.md | |
| ├── fullset/ | |
| └── hardset/ | |
| ``` | |
| See [data/README.md](data/README.md) for all fields, answer formats, ID relationships, and evaluation output conventions. `task_configs.json` mirrors the README's task/file mappings. `data_manifest.json` records the row count and SHA-256 checksum of each JSONL file. The Hugging Face and ModelScope distributions contain identical JSONL bytes copied from the GitHub source data. | |
| ## Independent and joint diagnostic and therapeutic reasoning evaluation | |
| Diagnostic and therapeutic reasoning supports generating syndrome, treatment, or prescription independently, or all three in one call. Join the three files by four-digit case ID for joint generation; the GitHub runner uses this workflow. See [diagnostic and therapeutic reasoning documentation](data/README.md#diagnostic-and-therapeutic-reasoning) for fields, entry-point names, and scoring. | |
| This example loads the three gold answers for one shared case: | |
| ```python | |
| from datasets import load_dataset | |
| tasks = ["syndrome", "treatment_method", "herbal_prescription"] | |
| components = {} | |
| for task in tasks: | |
| rows = load_dataset("TCMLLM/LingLan", name=task, split="hardset") | |
| components[task] = {r["id"].rsplit("_", 1)[1]: r for r in rows} | |
| case_id = next(iter(components["syndrome"])) | |
| records = [components[task][case_id] for task in tasks] | |
| assert len({r["病历文本"] for r in records}) == 1 | |
| print(records[0]["病历文本"]) | |
| print({task: components[task][case_id]["answer"] for task in tasks}) | |
| ``` | |
| ## Data sources and license | |
| Data are curated from de-identified clinical records, classical texts, official examination sources, and structured knowledge resources. | |
| The LingLanMedBench dataset is released under the [Creative Commons Attribution 4.0 International license](https://creativecommons.org/licenses/by/4.0/). Please credit [LingLanMedBench, its authors, and the data source](https://github.com/TCMAI-BJTU/LingLan), and cite the [paper](https://arxiv.org/abs/2602.01779) when using it. When sharing the data, retain the license link and indicate any changes. See [data/LICENSE](data/LICENSE) for the full terms. | |
| ## Citation | |
| ```bibtex | |
| @misc{hua2026linglan, | |
| title={LingLanMedBench: A Unified Benchmark for Evaluating Large Language Models in Traditional Chinese Medicine}, | |
| author={Rui Hua and Yu Wei and Zixin Shu and Kai Chang and Dengying Yan and Jianan Xia and Hui Zhu and Xiaodong Li and Dongmei Jia and Zhuye Gao and Yanyan Meng and Haibin Yu and Fei Dong and Kan Ding and Runshun Zhang and Jian Yu and Jiansheng Li and Baoyan Liu and Wenjia Wang and Xuezhong Zhou}, | |
| year={2026}, | |
| eprint={2602.01779}, | |
| archivePrefix={arXiv}, | |
| primaryClass={cs.AI}, | |
| url={https://arxiv.org/abs/2602.01779}, | |
| } | |
| ``` | |