Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
parquet
Languages:
Chinese
Size:
10K - 100K
ArXiv:
License:
real-jiakai
commited on
Commit
•
724dea9
1
Parent(s):
84ac856
Delete .ipynb_checkpoints
Browse files
.ipynb_checkpoints/README-checkpoint.md
DELETED
@@ -1,145 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- machine-translated
|
4 |
-
language_creators:
|
5 |
-
- machine-translated
|
6 |
-
language:
|
7 |
-
- zh
|
8 |
-
license:
|
9 |
-
- cc-by-sa-4.0
|
10 |
-
multilinguality:
|
11 |
-
- monolingual
|
12 |
-
size_categories:
|
13 |
-
- 10K<n<100K
|
14 |
-
source_datasets:
|
15 |
-
- squad_v2
|
16 |
-
task_categories:
|
17 |
-
- question-answering
|
18 |
-
task_ids:
|
19 |
-
- open-domain-qa
|
20 |
-
- extractive-qa
|
21 |
-
pretty_name: Chinese SQuAD 2.0
|
22 |
-
---
|
23 |
-
|
24 |
-
# Dataset Card for Chinese SQuAD 2.0
|
25 |
-
|
26 |
-
## Dataset Description
|
27 |
-
|
28 |
-
### Dataset Summary
|
29 |
-
|
30 |
-
This is a Chinese translation of the SQuAD 2.0 dataset, translated from the original English version. Like SQuAD 2.0, it contains both answerable and unanswerable questions. The dataset is designed for Chinese reading comprehension and question answering tasks.
|
31 |
-
|
32 |
-
Source: [ChineseSquad](https://github.com/junzeng-pluto/ChineseSquad)
|
33 |
-
|
34 |
-
### Dataset Structure
|
35 |
-
|
36 |
-
The dataset is stored in Parquet format and contains the following fields:
|
37 |
-
|
38 |
-
```python
|
39 |
-
{
|
40 |
-
'id': string,
|
41 |
-
'title': string,
|
42 |
-
'context': string,
|
43 |
-
'question': string,
|
44 |
-
'answers': {
|
45 |
-
'text': List[string],
|
46 |
-
'answer_start': List[int]
|
47 |
-
}
|
48 |
-
}
|
49 |
-
```
|
50 |
-
|
51 |
-
### Data Splits
|
52 |
-
|
53 |
-
| Split | Total Examples | Answerable | Unanswerable |
|
54 |
-
|------------|---------------|------------|--------------|
|
55 |
-
| train | 90,027 | 46,529 | 43,498 |
|
56 |
-
| validation | 9,936 | 3,991 | 5,945 |
|
57 |
-
|
58 |
-
### Usage
|
59 |
-
|
60 |
-
```python
|
61 |
-
from datasets import load_dataset
|
62 |
-
|
63 |
-
# Load from Hugging Face Hub
|
64 |
-
dataset = load_dataset("real-jiakai/chinese-squadv2")
|
65 |
-
|
66 |
-
# Example usage
|
67 |
-
example = dataset['train'][0]
|
68 |
-
print(f"Question: {example['question']}")
|
69 |
-
print(f"Context: {example['context']}")
|
70 |
-
print(f"Answer: {example['answers']['text']}")
|
71 |
-
```
|
72 |
-
|
73 |
-
Example output:
|
74 |
-
|
75 |
-
```python
|
76 |
-
Question: 碧昂丝在成长过程中,在哪些领域竞争?
|
77 |
-
Context: 碧昂丝·吉赛尔·诺尔斯·卡特(生于1981年9月4日)是美国歌手、作曲家、唱片制作人和女演员。她在得克萨斯州休斯顿出生长大,小时候参加过各种歌舞比赛,上世纪90年代末以R&B女团“命运之子”的主唱而声名鹊起。由她父亲马修·诺尔斯(Mathew Knowles)管理的这个集团,一直以来都是世界上最畅销的女孩集团之一。暂停期间,碧昂丝发行了首张专辑《恋爱中的危险》(2003),确立了她作为全球独唱艺术家的地位,获得了五项格莱美奖,并在广告牌上热播100首单曲《疯狂恋爱》和《小男孩》。
|
78 |
-
Answer: ['歌舞']
|
79 |
-
```
|
80 |
-
|
81 |
-
### Citation
|
82 |
-
|
83 |
-
If you use this dataset, please cite both the original SQuAD 2.0 paper and the Chinese translation:
|
84 |
-
|
85 |
-
```bibtex
|
86 |
-
@inproceedings{rajpurkar-etal-2018-know,
|
87 |
-
title = "Know What You Don{'}t Know: Unanswerable Questions for {SQ}u{AD}",
|
88 |
-
author = "Rajpurkar, Pranav and
|
89 |
-
Jia, Robin and
|
90 |
-
Liang, Percy",
|
91 |
-
editor = "Gurevych, Iryna and
|
92 |
-
Miyao, Yusuke",
|
93 |
-
booktitle = "Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)",
|
94 |
-
month = jul,
|
95 |
-
year = "2018",
|
96 |
-
address = "Melbourne, Australia",
|
97 |
-
publisher = "Association for Computational Linguistics",
|
98 |
-
url = "https://aclanthology.org/P18-2124",
|
99 |
-
doi = "10.18653/v1/P18-2124",
|
100 |
-
pages = "784--789",
|
101 |
-
eprint={1806.03822},
|
102 |
-
archivePrefix={arXiv},
|
103 |
-
primaryClass={cs.CL}
|
104 |
-
}
|
105 |
-
|
106 |
-
@inproceedings{rajpurkar-etal-2016-squad,
|
107 |
-
title = "{SQ}u{AD}: 100,000+ Questions for Machine Comprehension of Text",
|
108 |
-
author = "Rajpurkar, Pranav and
|
109 |
-
Zhang, Jian and
|
110 |
-
Lopyrev, Konstantin and
|
111 |
-
Liang, Percy",
|
112 |
-
editor = "Su, Jian and
|
113 |
-
Duh, Kevin and
|
114 |
-
Carreras, Xavier",
|
115 |
-
booktitle = "Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing",
|
116 |
-
month = nov,
|
117 |
-
year = "2016",
|
118 |
-
address = "Austin, Texas",
|
119 |
-
publisher = "Association for Computational Linguistics",
|
120 |
-
url = "https://aclanthology.org/D16-1264",
|
121 |
-
doi = "10.18653/v1/D16-1264",
|
122 |
-
pages = "2383--2392",
|
123 |
-
eprint={1606.05250},
|
124 |
-
archivePrefix={arXiv},
|
125 |
-
primaryClass={cs.CL},
|
126 |
-
}
|
127 |
-
|
128 |
-
@misc{ChineseSquad,
|
129 |
-
title = "ChineseSquad",
|
130 |
-
author = "junzeng-pluto",
|
131 |
-
url = "https://github.com/junzeng-pluto/ChineseSquad",
|
132 |
-
}
|
133 |
-
```
|
134 |
-
|
135 |
-
### License
|
136 |
-
|
137 |
-
This dataset is licensed under CC BY-SA 4.0, following the original SQuAD 2.0 license.
|
138 |
-
|
139 |
-
### Limitations and Bias
|
140 |
-
|
141 |
-
- Current version contains ~100k examples, which is less than the original SQuAD 2.0
|
142 |
-
- As a machine-translated dataset, some nuances from the original English text might be lost or altered
|
143 |
-
- The answer spans are machine-aligned after translation, which might introduce some noise
|
144 |
-
- The dataset inherits any biases present in the original SQuAD 2.0 dataset
|
145 |
-
- Translation quality may vary across different examples
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ipynb_checkpoints/dataset_info-checkpoint.json
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"config_name": "chinese_squadv2",
|
3 |
-
"features": {
|
4 |
-
"id": {"dtype": "string", "_type": "Value"},
|
5 |
-
"title": {"dtype": "string", "_type": "Value"},
|
6 |
-
"context": {"dtype": "string", "_type": "Value"},
|
7 |
-
"question": {"dtype": "string", "_type": "Value"},
|
8 |
-
"answers": {
|
9 |
-
"feature": {
|
10 |
-
"text": {"dtype": "string", "_type": "Sequence"},
|
11 |
-
"answer_start": {"dtype": "int32", "_type": "Sequence"}
|
12 |
-
},
|
13 |
-
"_type": "Struct"
|
14 |
-
}
|
15 |
-
},
|
16 |
-
"splits": {
|
17 |
-
"train": {
|
18 |
-
"num_examples": 90027
|
19 |
-
},
|
20 |
-
"validation": {
|
21 |
-
"num_examples": 9936
|
22 |
-
}
|
23 |
-
}
|
24 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|