Datasets:

Modalities:
Text
Sub-tasks:
extractive-qa
Languages:
Japanese
ArXiv:
Libraries:
Datasets
License:
parquet-converter commited on
Commit
8f73b31
1 Parent(s): 05600ff

Update parquet files

Browse files
Files changed (39) hide show
  1. .gitattributes +0 -27
  2. JaQuAD.py +0 -117
  3. README.md +0 -209
  4. data/dev/jaquad_dev_0000.json +0 -0
  5. data/dev/jaquad_dev_0001.json +0 -0
  6. data/dev/jaquad_dev_0002.json +0 -0
  7. data/dev/jaquad_dev_0003.json +0 -0
  8. data/train/jaquad_train_0000.json +0 -0
  9. data/train/jaquad_train_0001.json +0 -0
  10. data/train/jaquad_train_0002.json +0 -0
  11. data/train/jaquad_train_0003.json +0 -0
  12. data/train/jaquad_train_0004.json +0 -0
  13. data/train/jaquad_train_0005.json +0 -0
  14. data/train/jaquad_train_0006.json +0 -0
  15. data/train/jaquad_train_0007.json +0 -0
  16. data/train/jaquad_train_0008.json +0 -0
  17. data/train/jaquad_train_0009.json +0 -0
  18. data/train/jaquad_train_0010.json +0 -0
  19. data/train/jaquad_train_0011.json +0 -0
  20. data/train/jaquad_train_0012.json +0 -0
  21. data/train/jaquad_train_0013.json +0 -0
  22. data/train/jaquad_train_0014.json +0 -0
  23. data/train/jaquad_train_0015.json +0 -0
  24. data/train/jaquad_train_0016.json +0 -0
  25. data/train/jaquad_train_0017.json +0 -0
  26. data/train/jaquad_train_0018.json +0 -0
  27. data/train/jaquad_train_0019.json +0 -0
  28. data/train/jaquad_train_0020.json +0 -0
  29. data/train/jaquad_train_0021.json +0 -0
  30. data/train/jaquad_train_0022.json +0 -0
  31. data/train/jaquad_train_0023.json +0 -0
  32. data/train/jaquad_train_0024.json +0 -0
  33. data/train/jaquad_train_0025.json +0 -0
  34. data/train/jaquad_train_0026.json +0 -0
  35. data/train/jaquad_train_0027.json +0 -0
  36. data/train/jaquad_train_0028.json +0 -0
  37. data/train/jaquad_train_0029.json +0 -0
  38. default/ja_qu_ad-train.parquet +3 -0
  39. default/ja_qu_ad-validation.parquet +3 -0
.gitattributes DELETED
@@ -1,27 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bin.* filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.onnx filter=lfs diff=lfs merge=lfs -text
14
- *.ot filter=lfs diff=lfs merge=lfs -text
15
- *.parquet filter=lfs diff=lfs merge=lfs -text
16
- *.pb filter=lfs diff=lfs merge=lfs -text
17
- *.pt filter=lfs diff=lfs merge=lfs -text
18
- *.pth filter=lfs diff=lfs merge=lfs -text
19
- *.rar filter=lfs diff=lfs merge=lfs -text
20
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
- *.tar.* filter=lfs diff=lfs merge=lfs -text
22
- *.tflite filter=lfs diff=lfs merge=lfs -text
23
- *.tgz filter=lfs diff=lfs merge=lfs -text
24
- *.xz filter=lfs diff=lfs merge=lfs -text
25
- *.zip filter=lfs diff=lfs merge=lfs -text
26
- *.zstandard filter=lfs diff=lfs merge=lfs -text
27
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
JaQuAD.py DELETED
@@ -1,117 +0,0 @@
1
- '''Dataset loading script for JaQuAD.
2
- We refer to https://huggingface.co/datasets/squad_v2/blob/main/squad_v2.py
3
- '''
4
- import json
5
- import os
6
-
7
- import datasets
8
-
9
- _CITATION = '''
10
- @article{SkelterLabsInc:JaQuAD,
11
- title = {{JaQuAD}: Japanese Question Answering Dataset for Machine
12
- Reading Comprehension},
13
- author = {Byunghoon So and
14
- Kyuhong Byun and
15
- Kyungwon Kang and
16
- Seongjin Cho},
17
- year = {2022},
18
- }
19
- '''
20
- _DESCRIPTION = '''Japanese Question Answering Dataset (JaQuAD), released in
21
- 2022, is a human-annotated dataset created for Japanese Machine Reading
22
- Comprehension. JaQuAD is developed to provide a SQuAD-like QA dataset in
23
- Japanese. JaQuAD contains 39,696 question-answer pairs. Questions and answers
24
- are manually curated by human annotators. Contexts are collected from Japanese
25
- Wikipedia articles.
26
- '''
27
- _LICENSE = 'CC BY-SA 3.0'
28
- _HOMEPAGE = 'https://skelterlabs.com/en/'
29
- _URL = 'https://huggingface.co/datasets/SkelterLabsInc/JaQuAD/raw/main/data/'
30
-
31
-
32
- class JaQuAD(datasets.GeneratorBasedBuilder):
33
- VERSION = datasets.Version('0.1.0')
34
-
35
- def _info(self):
36
- features = datasets.Features({
37
- 'id': datasets.Value('string'),
38
- 'title': datasets.Value('string'),
39
- 'context': datasets.Value('string'),
40
- 'question': datasets.Value('string'),
41
- 'question_type': datasets.Value('string'),
42
- 'answers':
43
- datasets.features.Sequence({
44
- 'text': datasets.Value('string'),
45
- 'answer_start': datasets.Value('int32'),
46
- 'answer_type': datasets.Value('string'),
47
- }),
48
- })
49
- return datasets.DatasetInfo(
50
- description=_DESCRIPTION,
51
- features=features,
52
- homepage=_HOMEPAGE,
53
- license=_LICENSE,
54
- citation=_CITATION,
55
- )
56
-
57
- def _split_generators(self, dl_manager):
58
- urls_to_download = {
59
- 'train': [
60
- os.path.join(_URL, f'train/jaquad_train_{i:04d}.json')
61
- for i in range(30)
62
- ],
63
- 'dev': [
64
- os.path.join(_URL, f'dev/jaquad_dev_{i:04d}.json')
65
- for i in range(4)
66
- ],
67
- }
68
- downloaded_files = dl_manager.download_and_extract(urls_to_download)
69
- return [
70
- datasets.SplitGenerator(
71
- name=datasets.Split.TRAIN,
72
- gen_kwargs={'filepaths': downloaded_files['train']},
73
- ),
74
- datasets.SplitGenerator(
75
- name=datasets.Split.VALIDATION,
76
- gen_kwargs={'filepaths': downloaded_files['dev']},
77
- ),
78
- ]
79
-
80
- def _generate_examples(self, filepaths):
81
- for filename in filepaths:
82
- with open(filename, encoding='utf-8') as ifile:
83
- jaquad = json.load(ifile)
84
- for article in jaquad['data']:
85
- title = article.get('title', '').strip()
86
- for paragraph in article['paragraphs']:
87
- context = paragraph['context'].strip()
88
- for qa in paragraph['qas']:
89
- qa_id = qa['id']
90
- question = qa['question'].strip()
91
- question_type = qa['question_type']
92
-
93
- answer_starts = [
94
- answer['answer_start']
95
- for answer in qa['answers']
96
- ]
97
- answer_texts = [
98
- answer['text'].strip()
99
- for answer in qa['answers']
100
- ]
101
- answer_types = [
102
- answer['answer_type']
103
- for answer in qa['answers']
104
- ]
105
-
106
- yield qa_id, {
107
- 'title': title,
108
- 'context': context,
109
- 'question': question,
110
- 'question_type': question_type,
111
- 'id': qa_id,
112
- 'answers': {
113
- 'text': answer_texts,
114
- 'answer_start': answer_starts,
115
- 'answer_type': answer_types,
116
- },
117
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,209 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - crowdsourced
4
- language_creators:
5
- - crowdsourced
6
- - found
7
- language:
8
- - ja
9
- license:
10
- - cc-by-sa-3.0
11
- multilinguality:
12
- - monolingual
13
- paperswithcode_id: null
14
- pretty_name: "JaQuAD: Japanese Question Answering Dataset"
15
- size_categories:
16
- - 10K<n<100K
17
- source_datasets:
18
- - original
19
- task_categories:
20
- - question-answering
21
- task_ids:
22
- - extractive-qa
23
- ---
24
-
25
- # Dataset Card for JaQuAD
26
-
27
- ## Table of Contents
28
-
29
- - [Table of Contents](#table-of-contents)
30
- - [Dataset Description](#dataset-description)
31
- - [Dataset Summary](#dataset-summary)
32
- - [Supported Tasks](#supported-tasks-and-leaderboards)
33
- - [Languages](#languages)
34
- - [Dataset Structure](#dataset-structure)
35
- - [Data Instances](#data-instances)
36
- - [Data Fields](#data-fields)
37
- - [Data Splitting](#data-splitting)
38
- - [Dataset Creation](#dataset-creation)
39
- - [Curation Rationale](#curation-rationale)
40
- - [Source Data](#source-data)
41
- - [Annotations](#annotations)
42
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
43
- - [Considerations for Using the Data](#considerations-for-using-the-data)
44
- - [Social Impact of Dataset](#social-impact-of-dataset)
45
- - [Discussion of Biases](#discussion-of-biases)
46
- - [Other Known Limitations](#other-known-limitations)
47
- - [Additional Information](#additional-information)
48
- - [Dataset Curators](#dataset-curators)
49
- - [Licensing Information](#licensing-information)
50
- - [Citation Information](#citation-information)
51
- - [Acknowledgements](#acknowledgements)
52
-
53
- ## Dataset Description
54
-
55
- - **Repository:** https://github.com/SkelterLabsInc/JaQuAD
56
- - **Paper:** [JaQuAD: Japanese Question Answering Dataset for Machine Reading Comprehension]()
57
- - **Point of Contact:** [jaquad@skelterlabs.com](jaquad@skelterlabs.com)
58
- - **Size of dataset files:** 24.6 MB
59
- - **Size of the generated dataset:** 48.6 MB
60
- - **Total amount of disk used:** 73.2 MB
61
-
62
- ### Dataset Summary
63
-
64
- Japanese Question Answering Dataset (JaQuAD), released in 2022, is a
65
- human-annotated dataset created for Japanese Machine Reading Comprehension.
66
- JaQuAD is developed to provide a SQuAD-like QA dataset in Japanese.
67
- JaQuAD contains 39,696 question-answer pairs.
68
- Questions and answers are manually curated by human annotators.
69
- Contexts are collected from Japanese Wikipedia articles.
70
- Fine-tuning [BERT-Japanese](https://huggingface.co/cl-tohoku/bert-base-japanese)
71
- on JaQuAD achieves 78.92% for an F1 score and 63.38% for an exact match.
72
-
73
- ### Supported Tasks
74
-
75
- - `extractive-qa`: This dataset is intended to be used for `extractive-qa`.
76
-
77
- ### Languages
78
-
79
- Japanese (`ja`)
80
-
81
- ## Dataset Structure
82
-
83
- ### Data Instances
84
-
85
- - **Size of dataset files:** 24.6 MB
86
- - **Size of the generated dataset:** 48.6 MB
87
- - **Total amount of disk used:** 73.2 MB
88
-
89
- An example of 'validation':
90
- ```python
91
- {
92
- "id": "de-001-00-000",
93
- "title": "イタセンパラ",
94
- "context": "イタセンパラ(板鮮腹、Acheilognathuslongipinnis)は、コイ科のタナゴ亜科タナゴ属に分類される淡水>魚の一種。\n別名はビワタナゴ(琵琶鱮、琵琶鰱)。",
95
- "question": "ビワタナゴの正式名称は何?",
96
- "question_type": "Multiple sentence reasoning",
97
- "answers": {
98
- "text": "イタセンパラ",
99
- "answer_start": 0,
100
- "answer_type": "Object",
101
- },
102
- },
103
- ```
104
-
105
- ### Data Fields
106
-
107
- - `id`: a `string` feature.
108
- - `title`: a `string` feature.
109
- - `context`: a `string` feature.
110
- - `question`: a `string` feature.
111
- - `question_type`: a `string` feature.
112
- - `answers`: a dictionary feature containing:
113
- - `text`: a `string` feature.
114
- - `answer_start`: a `int32` feature.
115
- - `answer_type`: a `string` feature.
116
-
117
- ### Data Splitting
118
-
119
- JaQuAD consists of three sets, `train`, `validation`, and `test`. They were
120
- created from disjoint sets of Wikipedia articles. The `test` set is not publicly
121
- released yet. The following table shows statistics for each set.
122
-
123
- Set | Number of Articles | Number of Contexts | Number of Questions
124
- --------------|--------------------|--------------------|--------------------
125
- Train | 691 | 9713 | 31748
126
- Validation | 101 | 1431 | 3939
127
- Test | 109 | 1479 | 4009
128
-
129
-
130
- ## Dataset Creation
131
-
132
- ### Curation Rationale
133
-
134
- The JaQuAD dataset was created by [Skelter Labs](https://skelterlabs.com/) to
135
- provide a SQuAD-like QA dataset in Japanese. Questions are original and based
136
- on Japanese Wikipedia articles.
137
-
138
- ### Source Data
139
-
140
- The articles used for the contexts are from [Japanese Wikipedia](https://ja.wikipedia.org/).
141
- 88.7% of articles are from the curated list of Japanese high-quality Wikipedia
142
- articles, e.g., [featured articles](https://ja.wikipedia.org/wiki/Wikipedia:%E8%89%AF%E8%B3%AA%E3%81%AA%E8%A8%98%E4%BA%8B)
143
- and [good articles](https://ja.wikipedia.org/wiki/Wikipedia:%E7%A7%80%E9%80%B8%E3%81%AA%E8%A8%98%E4%BA%8B).
144
-
145
- ### Annotations
146
-
147
- Wikipedia articles were scrapped and divided into one more multiple paragraphs
148
- as contexts. Annotations (questions and answer spans) are written by fluent
149
- Japanese speakers, including natives and non-natives. Annotators were given a
150
- context and asked to generate non-trivial questions about information in the
151
- context.
152
-
153
- ### Personal and Sensitive Information
154
-
155
- No personal or sensitive information is included in this dataset. Dataset
156
- annotators has been manually verified it.
157
-
158
- ## Considerations for Using the Data
159
-
160
- Users should consider that the articles are sampled from Wikipedia articles but
161
- not representative of all Wikipedia articles.
162
-
163
- ### Social Impact of Dataset
164
-
165
- The social biases of this dataset have not yet been investigated.
166
-
167
- ### Discussion of Biases
168
-
169
- The social biases of this dataset have not yet been investigated. Articles and
170
- questions have been selected for quality and diversity.
171
-
172
- ### Other Known Limitations
173
-
174
- The JaQuAD dataset has limitations as follows:
175
- - Most of them are short answers.
176
- - Assume that a question is answerable using the corresponding context.
177
-
178
- This dataset is incomplete yet. If you find any errors in JaQuAD, please contact
179
- us.
180
-
181
- ## Additional Information
182
-
183
- ### Dataset Curators
184
-
185
- Skelter Labs: [https://skelterlabs.com/](https://skelterlabs.com/)
186
-
187
- ### Licensing Information
188
-
189
- The JaQuAD dataset is licensed under the [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) license.
190
-
191
- ### Citation Information
192
-
193
- ```bibtex
194
- @misc{so2022jaquad,
195
- title={{JaQuAD: Japanese Question Answering Dataset for Machine Reading Comprehension}},
196
- author={ByungHoon So and Kyuhong Byun and Kyungwon Kang and Seongjin Cho},
197
- year={2022},
198
- eprint={2202.01764},
199
- archivePrefix={arXiv},
200
- primaryClass={cs.CL}
201
- }
202
- ```
203
-
204
- ### Acknowledgements
205
-
206
- This work was supported by [TPU Research Cloud (TRC) program](https://sites.research.google/trc/).
207
- For training models, we used cloud TPUs provided by TRC. We also thank
208
- annotators who generated JaQuAD.
209
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/dev/jaquad_dev_0000.json DELETED
The diff for this file is too large to render. See raw diff
 
data/dev/jaquad_dev_0001.json DELETED
The diff for this file is too large to render. See raw diff
 
data/dev/jaquad_dev_0002.json DELETED
The diff for this file is too large to render. See raw diff
 
data/dev/jaquad_dev_0003.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0000.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0001.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0002.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0003.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0004.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0005.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0006.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0007.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0008.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0009.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0010.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0011.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0012.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0013.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0014.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0015.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0016.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0017.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0018.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0019.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0020.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0021.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0022.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0023.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0024.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0025.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0026.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0027.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0028.json DELETED
The diff for this file is too large to render. See raw diff
 
data/train/jaquad_train_0029.json DELETED
The diff for this file is too large to render. See raw diff
 
default/ja_qu_ad-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f965a227330081814cc74173b29e69adb177af15988cb8332e5149b35611b8e
3
+ size 8534614
default/ja_qu_ad-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a6ea3d16451bd49809881f728cc09cc19e00e84d1d8ebaa7569c4663a05e5a1
3
+ size 1175307