The viewer is disabled because this dataset repo requires arbitrary Python code execution. Please consider removing the loading script and relying on automated data support (you can use convert_to_parquet from the datasets library). If this is not possible, please open a discussion for direct help.

Dataset Card for NewsQA

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 for adding this dataset.

Downloads last month
153

Models trained or fine-tuned on Maluuba/newsqa

Space using Maluuba/newsqa 1