数据集:

newsqa

语言:

en

许可:

mit

计算机处理:

monolingual

语言创建人:

crowdsourced

批注创建人:

crowdsourced

源数据集:

original

任务:

问答

子任务:

extractive-qa
英文

NewsQA 数据集卡

数据集总结

NewsQA 是一个具有挑战性的机器阅读理解数据集,包含超过 100,000 对人类生成的问答对。众包工作者根据来自 CNN 的 10,000 多篇新闻文章提供问题和答案,答案是对应文章中的文本段落。

支持的任务和排行榜

[需要更多信息]

语言

英语

数据集结构

数据实例

{'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': []}]}}

数据字段

配置:combined-csv

  • 'story_id': 故事的标识符。
  • 'story_text': 故事的文本。
  • 'question': 关于故事的问题。
  • 'answer_char_ranges': 用于对 story_text 中答案的基于字符的索引的原始数据。例如 196:228|196:202,217:228|None。来自不同众包工作者的答案用 | 分隔;在其中,多个来自同一众包工作者的选择用 , 分隔。None 表示众包工作者认为故事中没有问题的答案。起始位置是包含在内的,结束位置是不包含在内的。结束可能指向令牌后的空格。

配置:combined-json

  • 'storyId': 故事的标识符。
  • 'text': 故事的文本。
  • 'type': 分割类型。将是 "train"、"validation" 或 "test"。
  • 'questions': 包含以下内容的列表:
    • 'q': 关于故事的问题。
    • 'isAnswerAbsent': 表示说故事中没有答案的众包工作者的比例。
    • 'isQuestionBad': 表示表示问题没有意义的众包工作者的比例。
    • 'consensus': 共识答案。使用此字段从文本中选择最佳的连续答案段落。如果要了解问题在文本中是否有多个答案,则可以使用更详细的 "answers" 和 "validated_answers"。对象可以具有像上面的示例中所示的起始和结束位置,也可以是 {"badQuestion": true} 或 {"noAnswer": true}。请注意,只有一个共识答案,因为它基于众包工作者的多数同意。
    • 's': 答案的开始位置。在 "text" 中的答案的第一个字符(包含在内)。
    • 'e': 答案的结束位置。在 "text" 中答案的最后一个字符(不包含在内)。
    • 'badQuestion': 验证员说问题没有意义。
    • 'noAnswer': 众包工作者说在文本中没有问题的答案。
    • 'answers': 来自各种众包工作者的答案。
      • 'sourcerAnswers': 一位众包工作者提供的答案。
        • 's': 答案的开始位置。在 "text" 中的答案的第一个字符(包含在内)。
        • 'e': 答案的结束位置。在 "text" 中答案的最后一个字符(不包含在内)。
        • 'badQuestion': 众包工作者说问题没有意义。
        • 'noAnswer': 众包工作者说在文本中没有问题的答案。
    • 'validated_answers': 来自验证员的答案。
      • 's': 答案的开始位置。在 "text" 中的答案的第一个字符(包含在内)。
      • 'e': 答案的结束位置。在 "text" 中答案的最后一个字符(不包含在内)。
      • 'badQuestion': 验证员说问题没有意义。
      • 'noAnswer': 验证员说在文本中没有问题的答案。
      • 'count': 同意此答案的验证员数量。

配置:split

  • 'story_id': 故事的标识符
  • 'story_text': 故事的文本
  • 'question': 关于故事的问题。
  • 'answer_token_ranges': 基于单词的索引到 story_text 中答案。例如 196:202,217:228。来自同一答案的多个选择用 , 分隔。起始位置是包含在内的,结束位置是不包含在内的。结束可能指向令牌后的空格。

数据拆分

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

数据集创建

策划理由

[需要更多信息]

源数据

初始数据收集和规范化

[需要更多信息]

谁是源语言的生产者?

[需要更多信息]

标注

注释过程

[需要更多信息]

谁是注释者?

[需要更多信息]

个人和敏感信息

[需要更多信息]

使用数据时的注意事项

数据的社会影响

[需要更多信息]

偏见讨论

[需要更多信息]

其他已知限制

[需要更多信息]

其他信息

数据集创建者

[需要更多信息]

许可信息

NewsQA 代码版权所有 (c) Microsoft Corporation。保留所有权利。MIT 许可证特此免费授予获得此软件及其相关文档文件("软件")的任何人,以无限制地使用、复制、修改、合并、发布、分发、再许可和/或销售软件的副本,并允许向使用软件的人提供这样做的许可,但须符合下列条件:上述版权声明和本许可声明应包含在所有复制或实质部分的软件中。软件按"原样"提供,不提供任何形式的明示或暗示担保,包括但不限于对适销性、特定用途适用性和非侵权的保证。无论在任何情况下,作者或版权持有人均不对任何索赔、损害或其他责任负责,无论是因合同诉讼、侵权行为还是其他行为,起因于、与之有关或与软件或使用或其他交易中的其他权利的使用或其他交易有关。© 2020 GitHub,Inc.

引用信息

@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}

贡献

感谢 @rsanjaykamath 添加了这个数据集。