数据集:

natural_questions

语言:

en

计算机处理:

monolingual

语言创建人:

crowdsourced

批注创建人:

no-annotation

源数据集:

original

大小:

100K<n<1M

任务:

问答

子任务:

open-domain-qa
英文

Natural Questions 数据集卡片

数据集摘要

NQ语料库包含来自真实用户的问题,并要求QA系统阅读和理解可能包含答案的整个维基百科文章。真实用户问题的包含以及解决方案需要阅读整个页面以寻找答案,使得NQ比以前的QA数据集更具现实性和挑战性。

支持的任务和排行榜

https://ai.google.com/research/NaturalQuestions

语言

en

数据集结构

数据实例

  • 下载的数据集文件大小:45.07 GB
  • 生成的数据集大小:99.80 GB
  • 总使用磁盘量:144.87 GB

'train'的例子如下所示。这是一个玩具例子。

{
  "id": "797803103760793766",
  "document": {
    "title": "Google",
    "url": "http://www.wikipedia.org/Google",
    "html": "<html><body><h1>Google Inc.</h1><p>Google was founded in 1998 By:<ul><li>Larry</li><li>Sergey</li></ul></p></body></html>",
    "tokens":[
      {"token": "<h1>", "start_byte": 12, "end_byte": 16, "is_html": True},
      {"token": "Google", "start_byte": 16, "end_byte": 22, "is_html": False},
      {"token": "inc", "start_byte": 23, "end_byte": 26, "is_html": False},
      {"token": ".", "start_byte": 26, "end_byte": 27, "is_html": False},
      {"token": "</h1>", "start_byte": 27, "end_byte": 32, "is_html": True},
      {"token": "<p>", "start_byte": 32, "end_byte": 35, "is_html": True},
      {"token": "Google", "start_byte": 35, "end_byte": 41, "is_html": False},
      {"token": "was", "start_byte": 42, "end_byte": 45, "is_html": False},
      {"token": "founded", "start_byte": 46, "end_byte": 53, "is_html": False},
      {"token": "in", "start_byte": 54, "end_byte": 56, "is_html": False},
      {"token": "1998", "start_byte": 57, "end_byte": 61, "is_html": False},
      {"token": "by", "start_byte": 62, "end_byte": 64, "is_html": False},
      {"token": ":", "start_byte": 64, "end_byte": 65, "is_html": False},
      {"token": "<ul>", "start_byte": 65, "end_byte": 69, "is_html": True},
      {"token": "<li>", "start_byte": 69, "end_byte": 73, "is_html": True},
      {"token": "Larry", "start_byte": 73, "end_byte": 78, "is_html": False},
      {"token": "</li>", "start_byte": 78, "end_byte": 83, "is_html": True},
      {"token": "<li>", "start_byte": 83, "end_byte": 87, "is_html": True},
      {"token": "Sergey", "start_byte": 87, "end_byte": 92, "is_html": False},
      {"token": "</li>", "start_byte": 92, "end_byte": 97, "is_html": True},
      {"token": "</ul>", "start_byte": 97, "end_byte": 102, "is_html": True},
      {"token": "</p>", "start_byte": 102, "end_byte": 106, "is_html": True}
    ],
  },
  "question" :{
    "text": "who founded google",
    "tokens": ["who", "founded", "google"]
  },
  "long_answer_candidates": [
    {"start_byte": 32, "end_byte": 106, "start_token": 5, "end_token": 22, "top_level": True},
    {"start_byte": 65, "end_byte": 102, "start_token": 13, "end_token": 21, "top_level": False},
    {"start_byte": 69, "end_byte": 83, "start_token": 14, "end_token": 17, "top_level": False},
    {"start_byte": 83, "end_byte": 92, "start_token": 17, "end_token": 20 , "top_level": False}
  ],
  "annotations": [{
    "id": "6782080525527814293",
    "long_answer": {"start_byte": 32, "end_byte": 106, "start_token": 5, "end_token": 22, "candidate_index": 0},
    "short_answers": [
      {"start_byte": 73, "end_byte": 78, "start_token": 15, "end_token": 16, "text": "Larry"},
      {"start_byte": 87, "end_byte": 92, "start_token": 18, "end_token": 19, "text": "Sergey"}
    ],
    "yes_no_answer": -1
  }]
}

数据字段

数据字段在所有拆分中是相同的。

default
  • id:一个字符串特征。
  • document:一个包含的词典特征:
    • title:一个字符串特征。
    • url:一个字符串特征。
    • html:一个字符串特征。
    • tokens:包含的词典特征:
      • token:一个字符串特征。
      • is_html:一个布尔特征。
      • start_byte:一个int64特征。
      • end_byte:一个int64特征。
  • 问题:一个包含的词典特征:
    • text:一个字符串特征。
    • tokens:一个字符串特征的列表。
  • long_answer_candidates:一个包含的词典特征:
    • start_token:一个int64特征。
    • end_token:一个int64特征。
    • start_byte:一个int64特征。
    • end_byte:一个int64特征。
    • top_level:一个布尔特征。
  • annotations:一个包含的词典特征:
    • id:一个字符串特征。
    • long_answers:一个包含的词典特征:
      • start_token:一个int64特征。
      • end_token:一个int64特征。
      • start_byte:一个int64特征。
      • end_byte:一个int64特征。
      • candidate_index:一个int64特征。
    • short_answers:一个包含的词典特征:
      • start_token:一个int64特征。
      • end_token:一个int64特征。
      • start_byte:一个int64特征。
      • end_byte:一个int64特征。
      • text:一个字符串特征。
    • yes_no_answer:一个分类标签,可能的值包括NO(0),YES(1)。

数据拆分

name train validation
default 307373 7830
dev N/A 7830

数据集创建

策划理由

More Information Needed

源数据

初始数据收集和规范化

More Information Needed

资料的语言出处是谁?

More Information Needed

标注

标注过程

More Information Needed

标注者是谁?

More Information Needed

个人和敏感信息

More Information Needed

使用数据的注意事项

数据的社会影响

More Information Needed

偏见讨论

More Information Needed

其他已知限制

More Information Needed

更多信息

数据集创建者

More Information Needed

许可信息

Creative Commons Attribution-ShareAlike 3.0 Unported .

引用信息

@article{47761,
title	= {Natural Questions: a Benchmark for Question Answering Research},
author	= {Tom Kwiatkowski and Jennimaria Palomaki and Olivia Redfield and Michael Collins and Ankur Parikh and Chris Alberti and Danielle Epstein and Illia Polosukhin and Matthew Kelcey and Jacob Devlin and Kenton Lee and Kristina N. Toutanova and Llion Jones and Ming-Wei Chang and Andrew Dai and Jakob Uszkoreit and Quoc Le and Slav Petrov},
year	= {2019},
journal	= {Transactions of the Association of Computational Linguistics}
}

贡献

感谢 @thomwolf , @lhoestq 添加了这个数据集。