Datasets:

Modalities:
Text
Formats:
parquet
Languages:
Chinese
ArXiv:
Libraries:
Datasets
pandas
License:
real-jiakai commited on
Commit
2493aeb
1 Parent(s): cbf53b3

Upload folder using huggingface_hub

Browse files
.ipynb_checkpoints/README-checkpoint.md ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-squad-v2")
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
+ ```python
75
+ {
76
+ 'id': '56be85543aeaaa14008c9065',
77
+ 'title': '碧昂斯',
78
+ 'context': '碧昂丝·吉赛尔·诺尔斯·卡特(生于1981年9月4日)是美国歌手、作曲家、唱片制作人和女演员。...',
79
+ 'question': '碧昂丝在成长过程中,在哪些领域竞争?',
80
+ 'answers': {
81
+ 'text': ['歌舞'],
82
+ 'answer_start': [70]
83
+ }
84
+ }
85
+ ```
86
+
87
+ ### Citation
88
+
89
+ If you use this dataset, please cite both the original SQuAD 2.0 paper and the Chinese translation:
90
+
91
+ ```bibtex
92
+ @inproceedings{rajpurkar-etal-2018-know,
93
+ title = "Know What You Don't Know: Unanswerable Questions for {SQ}u{AD}",
94
+ author = "Rajpurkar, Pranav and Jia, Robin and Liang, Percy",
95
+ booktitle = "Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics",
96
+ year = "2018",
97
+ pages = "784--789",
98
+ }
99
+
100
+ @misc{chinese-squad,
101
+ title = "ChineseSquad: A Chinese Translation of SQuAD 2.0",
102
+ author = "Zeng, Jun",
103
+ url = "https://github.com/junzeng-pluto/ChineseSquad",
104
+ }
105
+ ```
106
+
107
+ ### License
108
+
109
+ This dataset is licensed under CC BY-SA 4.0, following the original SQuAD 2.0 license.
110
+
111
+ ### Limitations and Bias
112
+
113
+ - Current version contains ~100k examples, which is less than the original SQuAD 2.0
114
+ - As a machine-translated dataset, some nuances from the original English text might be lost or altered
115
+ - The answer spans are machine-aligned after translation, which might introduce some noise
116
+ - The dataset inherits any biases present in the original SQuAD 2.0 dataset
117
+ - Translation quality may vary across different examples
.ipynb_checkpoints/dataset_info-checkpoint.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ }
README.md ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-squad-v2")
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
+ ```python
75
+ {
76
+ 'id': '56be85543aeaaa14008c9065',
77
+ 'title': '碧昂斯',
78
+ 'context': '碧昂丝·吉赛尔·诺尔斯·卡特(生于1981年9月4日)是美国歌手、作曲家、唱片制作人和女演员。...',
79
+ 'question': '碧昂丝在成长过程中,在哪些领域竞争?',
80
+ 'answers': {
81
+ 'text': ['歌舞'],
82
+ 'answer_start': [70]
83
+ }
84
+ }
85
+ ```
86
+
87
+ ### Citation
88
+
89
+ If you use this dataset, please cite both the original SQuAD 2.0 paper and the Chinese translation:
90
+
91
+ ```bibtex
92
+ @inproceedings{rajpurkar-etal-2018-know,
93
+ title = "Know What You Don't Know: Unanswerable Questions for {SQ}u{AD}",
94
+ author = "Rajpurkar, Pranav and Jia, Robin and Liang, Percy",
95
+ booktitle = "Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics",
96
+ year = "2018",
97
+ pages = "784--789",
98
+ }
99
+
100
+ @misc{chinese-squad,
101
+ title = "ChineseSquad: A Chinese Translation of SQuAD 2.0",
102
+ author = "Zeng, Jun",
103
+ url = "https://github.com/junzeng-pluto/ChineseSquad",
104
+ }
105
+ ```
106
+
107
+ ### License
108
+
109
+ This dataset is licensed under CC BY-SA 4.0, following the original SQuAD 2.0 license.
110
+
111
+ ### Limitations and Bias
112
+
113
+ - Current version contains ~100k examples, which is less than the original SQuAD 2.0
114
+ - As a machine-translated dataset, some nuances from the original English text might be lost or altered
115
+ - The answer spans are machine-aligned after translation, which might introduce some noise
116
+ - The dataset inherits any biases present in the original SQuAD 2.0 dataset
117
+ - Translation quality may vary across different examples
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d102be77daed7f7cbff091bdbefd5716b383efd976048284d1a37d4e8d8d3253
3
+ size 14874843
data/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49bcdd1c3673665edc530571db8b5156921760fe1646e0e354c5c6683a6703d7
3
+ size 971092
dataset_info.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ }