---
title: clue
canonical_url: "https://www.modelscope.ai/datasets/modelscope/clue"
md_url: "https://www.modelscope.ai/datasets/modelscope/clue.md"
repository: modelscope/clue
last_updated: 2025-12-20
license: unknown
storage_size: "62 KB"
domain:
  - text
tasks:
  - text-classification
language:
  - zh
downloads: 165
stars: 2
---

# clue

> clue - An open-source dataset by modelscope on ModelScope. CLUE(A Chinese Language Understanding Evaluation Benchmark, 官网：https://www.cluebenchmarks.com/) 是用于对中文语法理解任务进行训练、校验和测试的数据集。

modelscope/clue is a text-classification dataset on ModelScope. covering text. totalling 62 KB. licensed under unknown.

- **Repository**: modelscope/clue
- **License**: unknown
- **Tasks**: text-classification
- **Domain**: text
- **Storage size**: 62 KB
- **Downloads**: 165
- **Stars**: 2
- **Last updated**: 2025-12-20

Source: https://www.modelscope.ai/datasets/modelscope/clue

---

## 数据集简介

CLUE(A Chinese Language Understanding Evaluation Benchmark, 官网：https://www.cluebenchmarks.com/) 是用于对中文语法理解任务进行训练、校验和测试的数据集。

本数据集合来自于[huggingface的数据集](https://huggingface.co/datasets/clue)，迁移目的是为了方便用户使用。

## 数据集加载方式
```python
from modelscope.msdatasets import MsDataset
# Load the afqmc dataset
train_datasets = MsDataset.load('clue', subset_name='afqmc', split='train')
eval_datasets = MsDataset.load('clue', subset_name='afqmc', split='validation')
```

## 数据及结构

### 数据集列表

#### afqmc

- **下载数据量:** 1.14 MB
- **最终数据集大小:** 4.01 MB
- **占用硬盘容量:** 5.15 MB

`validation`数据集的样例如下：
```
{
    "idx": 0,
    "label": 0,
    "sentence1": "双十一花呗提额在哪",
    "sentence2": "里可以提花呗额度"
}
```

#### c3

- **下载数据量:** 3.05 MB
- **最终数据集大小:** 14.96 MB
- **占用硬盘容量:** 18.02 MB

`train`数据集的样例如下（样例因长度过长而经过裁剪）：
```

{
    "answer": "比人的灵敏",
    "choice": ["没有人的灵敏", "和人的差不多", "和人的一样好", "比人的灵敏"],
    "context": "[\"许多动物的某些器官感觉特别灵敏，它们能比人类提前知道一些灾害事件的发生，例如，海洋中的水母能预报风暴，老鼠能事先躲避矿井崩塌或有害气体，等等。地震往往能使一些动物的某些感觉器官受到刺激而发生异常反应。如一个地区的重力发生变异，某些动物可能通过它们的平衡...",
    "id": 1,
    "question": "动物的器官感觉与人的相比有什么不同?"
}
```

#### chid

- **下载数据量:** 132.75 MB
- **最终数据集大小:** 261.38 MB
- **占用硬盘容量:** 394.13 MB

`train`数据集的样例如下（样例因长度过长而经过裁剪）：
```

{
    "answers": {
        "candidate_id": [3, 5, 6, 1, 7, 4, 0],
        "text": ["碌碌无为", "无所作为", "苦口婆心", "得过且过", "未雨绸缪", "软硬兼施", "传宗接代"]
    },
    "candidates": "[\"传宗接代\", \"得过且过\", \"咄咄逼人\", \"碌碌无为\", \"软硬兼施\", \"无所作为\", \"苦口婆心\", \"未雨绸缪\", \"和衷共济\", \"人老珠黄\"]...",
    "content": "[\"谈到巴萨目前的成就，瓜迪奥拉用了“坚持”两个字来形容。自从上世纪90年代克鲁伊夫带队以来，巴萨就坚持每年都有拉玛西亚球员进入一队的传统。即便是范加尔时代，巴萨强力推出的“巴萨五鹰”德拉·佩纳、哈维、莫雷罗、罗杰·加西亚和贝拉乌桑几乎#idiom0000...",
    "idx": 0
}
```

#### cluewsc2020

- **下载数据量:** 0.27 MB
- **最终数据集大小:** 0.98 MB
- **占用硬盘容量:** 1.23 MB

`train`数据集的样例如下：
```
{
    "idx": 0,
    "label": 1,
    "target": {
        "span1_index": 3,
        "span1_text": "伤口",
        "span2_index": 27,
        "span2_text": "它们"
    },
    "text": "裂开的伤口涂满尘土，里面有碎石子和木头刺，我小心翼翼把它们剔除出去。"
}
```

#### cmnli

- **下载数据量:** 29.95 MB
- **最终数据集大小:** 68.78 MB
- **占用硬盘容量:** 98.73 MB

`train`数据集的样例如下：
```
{
    "idx": 0,
    "label": 0,
    "sentence1": "从概念上讲，奶油略读有两个基本维度-产品和地理。",
    "sentence2": "产品和地理位置是使奶油撇油起作用的原因。"
}
```

### 数据字段

**注意：** 以下的数据字段在单个数据集的各数据文件（train、validation等）是相同的。

#### afqmc
- `sentence1`: `string`类型的句子
- `sentence2`: `string`类型的句子
- `label`: 分类任务的标签，值域包含 `0` (0), `1` (1).
- `idx`: `int32`类型的值

#### c3
- `id`: `int32`类型的值
- `context`: `string`类型的列表
- `question`: `string`类型的句子
- `choice`: `string`类型的列表
- `answer`: `string`类型的句子

#### chid
- `idx`: `int32`类型的值
- `candidates`: `string`类型的列表
- `content`: `string`类型的列表
- `answers`: `dict`类型的值:
  - `text`: `string`类型的句子
  - `candidate_id`: `int32`类型的值

#### cluewsc2020
- `idx`: `int32`类型的值
- `text`: `string`类型的句子
- `label`: 分类任务的标签，值域包含 `true` (0), `false` (1).
- `span1_text`: `string`类型的句子
- `span2_text`: `string`类型的句子
- `span1_index`: `int32`类型的值
- `span2_index`: `int32`类型的值

#### cmnli
- `sentence1`: `string`类型的句子
- `sentence2`: `string`类型的句子
- `label`: 分类任务的标签，值域包含 `neutral` (0), `entailment` (1), `contradiction` (2).
- `idx`: `int32`类型的值

### 数据量

|   name    |train |validation|test |
|-----------|-----:|---------:|----:|
|afqmc      | 34334|      4316| 3861|
|c3         | 11869|      3816| 3892|
|chid       | 84709|      3218| 3231|
|cluewsc2020|  1244|       304|  290|
|cmnli      |391783|     12241|13880|


### 引用信息

```

@misc{xu2020clue,
    title={CLUE: A Chinese Language Understanding Evaluation Benchmark},
    author={Liang Xu and Xuanwei Zhang and Lu Li and Hai Hu and Chenjie Cao and Weitang Liu and Junyi Li and Yudong Li and Kai Sun and Yechen Xu and Yiming Cui and Cong Yu and Qianqian Dong and Yin Tian and Dian Yu and Bo Shi and Jun Zeng and Rongzhao Wang and Weijian Xie and Yanting Li and Yina Patterson and Zuoyu Tian and Yiwen Zhang and He Zhou and Shaoweihua Liu and Qipeng Zhao and Cong Yue and Xinrui Zhang and Zhengliang Yang and Zhenzhong Lan},
    year={2020},
    eprint={2004.05986},
    archivePrefix={arXiv},
    primaryClass={cs.CL}
}

```

### License

| dataset    | license            |
|----------- |-------------------:|
|ocnli       | CC BY-NC 2.0       |
|c3          | CC BY-NC 4.0       |
|tnews       | unknown            |
|iflytek     | Apache License 2.0 |
|cmnli       | unknown            |
|cluewsc2020 | unknown            |
|csl         | non-commercial     |
|cmrc2018    | CC BY-SA 4.0       |
|drcd        | CC-BY-SA 3.0       |
|chid        | Apache License 2.0 |
|c3          | non-commercial     |
|diagnostics | unknown            |

如果对于License您有任何疑惑或其他信息，抑或我们在无意中侵犯了您的权利，请及时联系我们。
