File size: 15,389 Bytes
d484edc
 
 
 
 
d7a817d
d484edc
d7a817d
d484edc
 
 
 
851f1a7
 
d484edc
 
 
 
 
 
a155f8c
e23c8d3
851f1a7
 
 
 
badf790
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34a1785
 
 
badf790
 
 
 
 
d484edc
 
 
 
 
 
 
a155f8c
d484edc
 
 
a155f8c
 
d484edc
 
 
 
 
 
 
 
 
 
 
 
 
6d05007
d484edc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21cc522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d484edc
 
 
 
 
21cc522
 
d484edc
21cc522
d484edc
21cc522
d484edc
21cc522
 
 
 
d484edc
 
21cc522
 
 
d484edc
 
 
 
21cc522
 
 
d484edc
 
21cc522
 
 
 
 
d484edc
 
21cc522
d484edc
 
21cc522
d484edc
 
 
21cc522
 
 
 
 
d484edc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6d05007
 
 
badf790
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
---
annotations_creators:
- crowdsourced
language_creators:
- crowdsourced
language:
- en
license:
- mit
multilinguality:
- monolingual
size_categories:
- 100K<n<1M
- 10K<n<100K
source_datasets:
- original
task_categories:
- question-answering
task_ids:
- extractive-qa
paperswithcode_id: newsqa
pretty_name: NewsQA
configs:
- combined-csv
- combined-json
- split
dataset_info:
- config_name: combined-csv
  features:
  - name: story_id
    dtype: string
  - name: story_text
    dtype: string
  - name: question
    dtype: string
  - name: answer_char_ranges
    dtype: string
  splits:
  - name: train
    num_bytes: 465942194
    num_examples: 119633
  download_size: 0
  dataset_size: 465942194
- config_name: combined-json
  features:
  - name: storyId
    dtype: string
  - name: text
    dtype: string
  - name: type
    dtype: string
  - name: questions
    sequence:
    - name: q
      dtype: string
    - name: isAnswerAbsent
      dtype: int32
    - name: isQuestionBad
      dtype: int32
    - name: consensus
      struct:
      - name: s
        dtype: int32
      - name: e
        dtype: int32
      - name: badQuestion
        dtype: bool
      - name: noAnswer
        dtype: bool
    - name: answers
      sequence:
      - name: sourcerAnswers
        sequence:
        - name: s
          dtype: int32
        - name: e
          dtype: int32
        - name: badQuestion
          dtype: bool
        - name: noAnswer
          dtype: bool
    - name: validated_answers
      sequence:
      - name: s
        dtype: int32
      - name: e
        dtype: int32
      - name: badQuestion
        dtype: bool
      - name: noAnswer
        dtype: bool
      - name: count
        dtype: int32
  splits:
  - name: train
    num_bytes: 68667276
    num_examples: 12744
  download_size: 0
  dataset_size: 68667276
- config_name: split
  features:
  - name: story_id
    dtype: string
  - name: story_text
    dtype: string
  - name: question
    dtype: string
  - name: answer_token_ranges
    dtype: string
  splits:
  - name: train
    num_bytes: 362031288
    num_examples: 92549
  - name: test
    num_bytes: 19763673
    num_examples: 5126
  - name: validation
    num_bytes: 19862778
    num_examples: 5166
  download_size: 0
  dataset_size: 401657739
---

# Dataset Card for NewsQA

## Table of Contents
- [Dataset Description](#dataset-description)
  - [Dataset Summary](#dataset-summary)
  - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
  - [Languages](#languages)
- [Dataset Structure](#dataset-structure)
  - [Data Instances](#data-instances)
  - [Data Fields](#data-fields)
  - [Data Splits](#data-splits)
- [Dataset Creation](#dataset-creation)
  - [Curation Rationale](#curation-rationale)
  - [Source Data](#source-data)
  - [Annotations](#annotations)
  - [Personal and Sensitive Information](#personal-and-sensitive-information)
- [Considerations for Using the Data](#considerations-for-using-the-data)
  - [Social Impact of Dataset](#social-impact-of-dataset)
  - [Discussion of Biases](#discussion-of-biases)
  - [Other Known Limitations](#other-known-limitations)
- [Additional Information](#additional-information)
  - [Dataset Curators](#dataset-curators)
  - [Licensing Information](#licensing-information)
  - [Citation Information](#citation-information)
  - [Contributions](#contributions)

## Dataset Description

- **Homepage:** https://www.microsoft.com/en-us/research/project/newsqa-dataset/
- **Repository:** https://github.com/Maluuba/newsqa
- **Paper:** https://www.aclweb.org/anthology/W17-2623/
- **Leaderboard:** [Needs More Information]
- **Point of Contact:** [Needs More Information]

### Dataset Summary

NewsQA is a challenging machine comprehension dataset of over 100,000 human-generated question-answer pairs. 
Crowdworkers supply questions and answers based on a set of over 10,000 news articles from CNN, with answers consisting of spans of text from the corresponding articles.

### Supported Tasks and Leaderboards

[Needs More Information]

### Languages

English

## Dataset Structure

### Data Instances

```
{'storyId': './cnn/stories/42d01e187213e86f5fe617fe32e716ff7fa3afc4.story',
 'text': 'NEW DELHI, India (CNN) -- A high court in northern India on Friday acquitted a wealthy businessman facing the death sentence for the killing of a teen in a case dubbed "the house of horrors."\n\n\n\nMoninder Singh Pandher was sentenced to death by a lower court in February.\n\n\n\nThe teen was one of 19 victims -- children and young women -- in one of the most gruesome serial killings in India in recent years.\n\n\n\nThe Allahabad high court has acquitted Moninder Singh Pandher, his lawyer Sikandar B. Kochar told CNN.\n\n\n\nPandher and his domestic employee Surinder Koli were sentenced to death in February by a lower court for the rape and murder of the 14-year-old.\n\n\n\nThe high court upheld Koli\'s death sentence, Kochar said.\n\n\n\nThe two were arrested two years ago after body parts packed in plastic bags were found near their home in Noida, a New Delhi suburb. Their home was later dubbed a "house of horrors" by the Indian media.\n\n\n\nPandher was not named a main suspect by investigators initially, but was summoned as co-accused during the trial, Kochar said.\n\n\n\nKochar said his client was in Australia when the teen was raped and killed.\n\n\n\nPandher faces trial in the remaining 18 killings and could remain in custody, the attorney said.',
 'type': 'train',
 'questions': {'q': ['What was the amount of children murdered?',
   'When was Pandher sentenced to death?',
   'The court aquitted Moninder Singh Pandher of what crime?',
   'who was acquitted',
   'who was sentenced',
   'What was Moninder Singh Pandher acquitted for?',
   'Who was sentenced to death in February?',
   'how many people died',
   'How many children and young women were murdered?'],
  'isAnswerAbsent': [0, 0, 0, 0, 0, 0, 0, 0, 0],
  'isQuestionBad': [0, 0, 0, 0, 0, 0, 0, 0, 0],
  'consensus': [{'s': 294, 'e': 297, 'badQuestion': False, 'noAnswer': False},
   {'s': 261, 'e': 271, 'badQuestion': False, 'noAnswer': False},
   {'s': 624, 'e': 640, 'badQuestion': False, 'noAnswer': False},
   {'s': 195, 'e': 218, 'badQuestion': False, 'noAnswer': False},
   {'s': 195, 'e': 218, 'badQuestion': False, 'noAnswer': False},
   {'s': 129, 'e': 151, 'badQuestion': False, 'noAnswer': False},
   {'s': 195, 'e': 218, 'badQuestion': False, 'noAnswer': False},
   {'s': 294, 'e': 297, 'badQuestion': False, 'noAnswer': False},
   {'s': 294, 'e': 297, 'badQuestion': False, 'noAnswer': False}],
  'answers': [{'sourcerAnswers': [{'s': [294],
      'e': [297],
      'badQuestion': [False],
      'noAnswer': [False]},
     {'s': [0], 'e': [0], 'badQuestion': [False], 'noAnswer': [True]},
     {'s': [0], 'e': [0], 'badQuestion': [False], 'noAnswer': [True]}]},
   {'sourcerAnswers': [{'s': [261],
      'e': [271],
      'badQuestion': [False],
      'noAnswer': [False]},
     {'s': [258], 'e': [271], 'badQuestion': [False], 'noAnswer': [False]},
     {'s': [261], 'e': [271], 'badQuestion': [False], 'noAnswer': [False]}]},
   {'sourcerAnswers': [{'s': [26],
      'e': [33],
      'badQuestion': [False],
      'noAnswer': [False]},
     {'s': [0], 'e': [0], 'badQuestion': [False], 'noAnswer': [True]},
     {'s': [624], 'e': [640], 'badQuestion': [False], 'noAnswer': [False]}]},
   {'sourcerAnswers': [{'s': [195],
      'e': [218],
      'badQuestion': [False],
      'noAnswer': [False]},
     {'s': [195], 'e': [218], 'badQuestion': [False], 'noAnswer': [False]}]},
   {'sourcerAnswers': [{'s': [0],
      'e': [0],
      'badQuestion': [False],
      'noAnswer': [True]},
     {'s': [195, 232],
      'e': [218, 271],
      'badQuestion': [False, False],
      'noAnswer': [False, False]},
     {'s': [0], 'e': [0], 'badQuestion': [False], 'noAnswer': [True]}]},
   {'sourcerAnswers': [{'s': [129],
      'e': [192],
      'badQuestion': [False],
      'noAnswer': [False]},
     {'s': [129], 'e': [151], 'badQuestion': [False], 'noAnswer': [False]},
     {'s': [133], 'e': [151], 'badQuestion': [False], 'noAnswer': [False]}]},
   {'sourcerAnswers': [{'s': [195],
      'e': [218],
      'badQuestion': [False],
      'noAnswer': [False]},
     {'s': [195], 'e': [218], 'badQuestion': [False], 'noAnswer': [False]}]},
   {'sourcerAnswers': [{'s': [294],
      'e': [297],
      'badQuestion': [False],
      'noAnswer': [False]},
     {'s': [294], 'e': [297], 'badQuestion': [False], 'noAnswer': [False]}]},
   {'sourcerAnswers': [{'s': [294],
      'e': [297],
      'badQuestion': [False],
      'noAnswer': [False]},
     {'s': [294], 'e': [297], 'badQuestion': [False], 'noAnswer': [False]}]}],
  'validated_answers': [{'s': [0, 294],
    'e': [0, 297],
    'badQuestion': [False, False],
    'noAnswer': [True, False],
    'count': [1, 2]},
   {'s': [], 'e': [], 'badQuestion': [], 'noAnswer': [], 'count': []},
   {'s': [624],
    'e': [640],
    'badQuestion': [False],
    'noAnswer': [False],
    'count': [2]},
   {'s': [], 'e': [], 'badQuestion': [], 'noAnswer': [], 'count': []},
   {'s': [195],
    'e': [218],
    'badQuestion': [False],
    'noAnswer': [False],
    'count': [2]},
   {'s': [129],
    'e': [151],
    'badQuestion': [False],
    'noAnswer': [False],
    'count': [2]},
   {'s': [], 'e': [], 'badQuestion': [], 'noAnswer': [], 'count': []},
   {'s': [], 'e': [], 'badQuestion': [], 'noAnswer': [], 'count': []},
   {'s': [], 'e': [], 'badQuestion': [], 'noAnswer': [], 'count': []}]}}
```

### Data Fields

Configuration: combined-csv
- 'story_id': An identifier of the story.
- 'story_text': Text of the story.
- 'question': A question about the story.
- 'answer_char_ranges': The raw data collected for character based indices to answers in story_text. E.g. 196:228|196:202,217:228|None. Answers from different crowdsourcers are separated by `|`; within those, multiple selections from the same crowdsourcer are separated by `,`. `None` means the crowdsourcer thought there was no answer to the question in the story. The start is inclusive and the end is exclusive. The end may point to whitespace after a token.

Configuration: combined-json
- 'storyId': An identifier of the story.
- 'text': Text of the story.
- 'type': Split type. Will be "train", "validation" or "test".
- 'questions': A list containing the following: 
  - 'q': A question about the story.
  - 'isAnswerAbsent': Proportion of crowdsourcers that said there was no answer to the question in the story.
  - 'isQuestionBad': Proportion of crowdsourcers that said the question does not make sense.
  - 'consensus': The consensus answer. Use this field to pick the best continuous answer span from the text. If you want to know about a question having multiple answers in the text then you can use the more detailed "answers" and "validated_answers". The object can have start and end positions like in the example above or can be {"badQuestion": true} or {"noAnswer": true}. Note that there is only one consensus answer since it's based on the majority agreement of the crowdsourcers.
  - 's': Start of the answer. The first character of the answer in "text" (inclusive).
  - 'e': End of the answer. The last character of the answer in "text" (exclusive).
  - 'badQuestion': The validator said that the question did not make sense.
  - 'noAnswer': The crowdsourcer said that there was no answer to the question in the text.
  - 'answers': The answers from various crowdsourcers.
    - 'sourcerAnswers': The answer provided from one crowdsourcer.
      - 's': Start of the answer. The first character of the answer in "text" (inclusive).
      - 'e': End of the answer. The last character of the answer in "text" (exclusive).
      - 'badQuestion': The crowdsourcer said that the question did not make sense.
      - 'noAnswer': The crowdsourcer said that there was no answer to the question in the text.
  - 'validated_answers': The answers from the validators.
    - 's': Start of the answer. The first character of the answer in "text" (inclusive).
    - 'e': End of the answer. The last character of the answer in "text" (exclusive).
    - 'badQuestion': The validator said that the question did not make sense.
    - 'noAnswer': The validator said that there was no answer to the question in the text.
    - 'count': The number of validators that agreed with this answer.

Configuration: split
- 'story_id': An identifier of the story
- 'story_text': text of the story
- 'question': A question about the story.
- 'answer_token_ranges': Word based indices to answers in story_text. E.g. 196:202,217:228. Multiple selections from the same answer are separated by `,`. The start is inclusive and the end is exclusive. The end may point to whitespace after a token.

### Data Splits

| name          |      train | validation |    test |
|---------------|-----------:|-----------:|--------:|
| combined-csv  |     119633 |            |         |
| combined-json |      12744 |            |         |
| split         |      92549 |       5166 |    5126 |

## Dataset Creation

### Curation Rationale

[More Information Needed]

### Source Data

#### Initial Data Collection and Normalization

[Needs More Information]

#### Who are the source language producers?

[Needs More Information]

### Annotations

#### Annotation process

[Needs More Information]

#### Who are the annotators?

[Needs More Information]

### Personal and Sensitive Information

[Needs More Information]

## Considerations for Using the Data

### Social Impact of Dataset

[Needs More Information]

### Discussion of Biases

[Needs More Information]

### Other Known Limitations

[Needs More Information]

## Additional Information

### Dataset Curators

[Needs More Information]

### Licensing Information

NewsQA Code 
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
© 2020 GitHub, Inc.

### Citation Information

@inproceedings{trischler2017newsqa,
  title={NewsQA: A Machine Comprehension Dataset},
  author={Trischler, Adam and Wang, Tong and Yuan, Xingdi and Harris, Justin and Sordoni, Alessandro and Bachman, Philip and Suleman, Kaheer},
  booktitle={Proceedings of the 2nd Workshop on Representation Learning for NLP},
  pages={191--200},
  year={2017}

### Contributions

Thanks to [@rsanjaykamath](https://github.com/rsanjaykamath) for adding this dataset.