facebook/babi_qa

Dataset

Dataset Card for bAbi QA

13

stars

11

commits

2

linked in READMEs

Jan 25, 2023

updated

chained-qa

README

Dataset Card for bAbi QA

Table of Contents

Dataset Description

Dataset Summary

The (20) QA bAbI tasks are a set of proxy tasks that evaluate reading comprehension via question answering. Our tasks measure understanding in several ways: whether a system is able to answer questions via chaining facts, simple induction, deduction and many more. The tasks are designed to be prerequisites for any system that aims to be capable of conversing with a human. The aim is to classify these tasks into skill sets,so that researchers can identify (and then rectify) the failings of their systems.

Supported Tasks and Leaderboards

The dataset supports a set of 20 proxy story-based question answering tasks for various "types" in English and Hindi. The tasks are:

task_notask_name
qa1single-supporting-fact
qa2two-supporting-facts
qa3three-supporting-facts
qa4two-arg-relations
qa5three-arg-relations
qa6yes-no-questions
qa7counting
qa8lists-sets
qa9simple-negation
qa10indefinite-knowledge
qa11basic-coreference
qa12conjunction
qa13compound-coreference
qa14time-reasoning
qa15basic-deduction
qa16basic-induction
qa17positional-reasoning
qa18size-reasoning
qa19path-finding
qa20agents-motivations

The "types" are are:

  • en

    • the tasks in English, readable by humans.
  • hn

    • the tasks in Hindi, readable by humans.
  • shuffled

    • the same tasks with shuffled letters so they are not readable by humans, and for existing parsers and taggers cannot be used in a straight-forward fashion to leverage extra resources-- in this case the learner is more forced to rely on the given training data. This mimics a learner being first presented a language and having to learn from scratch.
  • en-10k, shuffled-10k and hn-10k

    • the same tasks in the three formats, but with 10,000 training examples, rather than 1000 training examples.
  • en-valid and en-valid-10k

    • are the same as en and en10k except the train sets have been conveniently split into train and valid portions (90% and 10% split).

To get a particular dataset, use load_dataset('babi_qa',type=f'{type}',task_no=f'{task_no}') where type is one of the types, and task_no is one of the task numbers. For example, load_dataset('babi_qa', type='en', task_no='qa1').

Languages

Dataset Structure

Data Instances

An instance from the en-qa1 config's train split:

{'story': {'answer': ['', '', 'bathroom', '', '', 'hallway', '', '', 'hallway', '', '', 'office', '', '', 'bathroom'], 'id': ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15'], 'supporting_ids': [[], [], ['1'], [], [], ['4'], [], [], ['4'], [], [], ['11'], [], [], ['8']], 'text': ['Mary moved to the bathroom.', 'John went to the hallway.', 'Where is Mary?', 'Daniel went back to the hallway.', 'Sandra moved to the garden.', 'Where is Daniel?', 'John moved to the office.', 'Sandra journeyed to the bathroom.', 'Where is Daniel?', 'Mary moved to the hallway.', 'Daniel travelled to the office.', 'Where is Daniel?', 'John went back to the garden.', 'John moved to the bedroom.', 'Where is Sandra?'], 'type': [0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1]}}

Data Fields

  • story: a dictionary feature containing:
    • id: a string feature, which denotes the line number in the example.
    • type: a classification label, with possible values including context, question, denoting whether the text is context or a question.
    • text: a string feature the text present, whether it is a question or context.
    • supporting_ids: a list of string features containing the line numbers of the lines in the example which support the answer.
    • answer: a string feature containing the answer to the question, or an empty string if the types is not question.

Data Splits

The splits and corresponding sizes are:

traintestvalidation
en-qa1200200-
en-qa2200200-
en-qa3200200-
en-qa410001000-
en-qa5200200-
en-qa6200200-
en-qa7200200-
en-qa8200200-
en-qa9200200-
en-qa10200200-
en-qa11200200-
en-qa12200200-
en-qa13200200-
en-qa14200200-
en-qa15250250-
en-qa1610001000-
en-qa17125125-
en-qa18198199-
en-qa1910001000-
en-qa209493-
en-10k-qa12000200-
en-10k-qa22000200-
en-10k-qa32000200-
en-10k-qa4100001000-
en-10k-qa52000200-
en-10k-qa62000200-
en-10k-qa72000200-
en-10k-qa82000200-
en-10k-qa92000200-
en-10k-qa102000200-
en-10k-qa112000200-
en-10k-qa122000200-
en-10k-qa132000200-
en-10k-qa142000200-
en-10k-qa152500250-
en-10k-qa16100001000-
en-10k-qa171250125-
en-10k-qa181978199-
en-10k-qa19100001000-
en-10k-qa2093393-
en-valid-qa118020020
en-valid-qa218020020
en-valid-qa318020020
en-valid-qa49001000100
en-valid-qa518020020
en-valid-qa618020020
en-valid-qa718020020
en-valid-qa818020020
en-valid-qa918020020
en-valid-qa1018020020
en-valid-qa1118020020
en-valid-qa1218020020
en-valid-qa1318020020
en-valid-qa1418020020
en-valid-qa1522525025
en-valid-qa169001000100
en-valid-qa1711312512
en-valid-qa1817919919
en-valid-qa199001000100
en-valid-qa2085939
en-valid-10k-qa11800200200
en-valid-10k-qa21800200200
en-valid-10k-qa31800200200
en-valid-10k-qa4900010001000
en-valid-10k-qa51800200200
en-valid-10k-qa61800200200
en-valid-10k-qa71800200200
en-valid-10k-qa81800200200
en-valid-10k-qa91800200200
en-valid-10k-qa101800200200
en-valid-10k-qa111800200200
en-valid-10k-qa121800200200
en-valid-10k-qa131800200200
en-valid-10k-qa141800200200
en-valid-10k-qa152250250250
en-valid-10k-qa16900010001000
en-valid-10k-qa171125125125
en-valid-10k-qa181781199197
en-valid-10k-qa19900010001000
en-valid-10k-qa208409393
hn-qa1200200-
hn-qa2200200-
hn-qa3167167-
hn-qa410001000-
hn-qa5200200-
hn-qa6200200-
hn-qa7200200-
hn-qa8200200-
hn-qa9200200-
hn-qa10200200-
hn-qa11200200-
hn-qa12200200-
hn-qa13125125-
hn-qa14200200-
hn-qa15250250-
hn-qa1610001000-
hn-qa17125125-
hn-qa18198198-
hn-qa1910001000-
hn-qa209394-
hn-10k-qa12000200-
hn-10k-qa22000200-
hn-10k-qa31667167-
hn-10k-qa4100001000-
hn-10k-qa52000200-
hn-10k-qa62000200-
hn-10k-qa72000200-
hn-10k-qa82000200-
hn-10k-qa92000200-
hn-10k-qa102000200-
hn-10k-qa112000200-
hn-10k-qa122000200-
hn-10k-qa131250125-
hn-10k-qa142000200-
hn-10k-qa152500250-
hn-10k-qa16100001000-
hn-10k-qa171250125-
hn-10k-qa181977198-
hn-10k-qa19100001000-
hn-10k-qa2093494-
shuffled-qa1200200-
shuffled-qa2200200-
shuffled-qa3200200-
shuffled-qa410001000-
shuffled-qa5200200-
shuffled-qa6200200-
shuffled-qa7200200-
shuffled-qa8200200-
shuffled-qa9200200-
shuffled-qa10200200-
shuffled-qa11200200-
shuffled-qa12200200-
shuffled-qa13200200-
shuffled-qa14200200-
shuffled-qa15250250-
shuffled-qa1610001000-
shuffled-qa17125125-
shuffled-qa18198199-
shuffled-qa1910001000-
shuffled-qa209493-
shuffled-10k-qa12000200-
shuffled-10k-qa22000200-
shuffled-10k-qa32000200-
shuffled-10k-qa4100001000-
shuffled-10k-qa52000200-
shuffled-10k-qa62000200-
shuffled-10k-qa72000200-
shuffled-10k-qa82000200-
shuffled-10k-qa92000200-
shuffled-10k-qa102000200-
shuffled-10k-qa112000200-
shuffled-10k-qa122000200-
shuffled-10k-qa132000200-
shuffled-10k-qa142000200-
shuffled-10k-qa152500250-
shuffled-10k-qa16100001000-
shuffled-10k-qa171250125-
shuffled-10k-qa181978199-
shuffled-10k-qa19100001000-
shuffled-10k-qa2093393-

Dataset Creation

Curation Rationale

[More Information Needed]

Source Data

Initial Data Collection and Normalization

Code to generate tasks is available on github

Who are the source language producers?

[More Information Needed]

Annotations

Annotation process

[More Information Needed]

Who are the annotators?

[More Information Needed]

Personal and Sensitive Information

[More Information Needed]

Considerations for Using the Data

Social Impact of Dataset

[More Information Needed]

Discussion of Biases

[More Information Needed]

Other Known Limitations

[More Information Needed]

Additional Information

Dataset Curators

Jesse Dodge and Andreea Gane and Xiang Zhang and Antoine Bordes and Sumit Chopra and Alexander Miller and Arthur Szlam and Jason Weston, at Facebook Research.

Licensing Information

Creative Commons Attribution 3.0 License

Citation Information

@misc{dodge2016evaluating,
      title={Evaluating Prerequisite Qualities for Learning End-to-End Dialog Systems}, 
      author={Jesse Dodge and Andreea Gane and Xiang Zhang and Antoine Bordes and Sumit Chopra and Alexander Miller and Arthur Szlam and Jason Weston},
      year={2016},
      eprint={1511.06931},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Contributions

Thanks to @gchhablani for adding this dataset.

Contributors

system

4 commits

lhoestq

3 commits

julien-c

1 commits

facebook/babi_qa

Dataset

Dataset Card for bAbi QA

13

stars

11

commits

2

linked in READMEs

Jan 25, 2023

updated

chained-qa

README

Dataset Card for bAbi QA

Table of Contents

Dataset Description

Dataset Summary

The (20) QA bAbI tasks are a set of proxy tasks that evaluate reading comprehension via question answering. Our tasks measure understanding in several ways: whether a system is able to answer questions via chaining facts, simple induction, deduction and many more. The tasks are designed to be prerequisites for any system that aims to be capable of conversing with a human. The aim is to classify these tasks into skill sets,so that researchers can identify (and then rectify) the failings of their systems.

Supported Tasks and Leaderboards

The dataset supports a set of 20 proxy story-based question answering tasks for various "types" in English and Hindi. The tasks are:

task_notask_name
qa1single-supporting-fact
qa2two-supporting-facts
qa3three-supporting-facts
qa4two-arg-relations
qa5three-arg-relations
qa6yes-no-questions
qa7counting
qa8lists-sets
qa9simple-negation
qa10indefinite-knowledge
qa11basic-coreference
qa12conjunction
qa13compound-coreference
qa14time-reasoning
qa15basic-deduction
qa16basic-induction
qa17positional-reasoning
qa18size-reasoning
qa19path-finding
qa20agents-motivations

The "types" are are:

  • en

    • the tasks in English, readable by humans.
  • hn

    • the tasks in Hindi, readable by humans.
  • shuffled

    • the same tasks with shuffled letters so they are not readable by humans, and for existing parsers and taggers cannot be used in a straight-forward fashion to leverage extra resources-- in this case the learner is more forced to rely on the given training data. This mimics a learner being first presented a language and having to learn from scratch.
  • en-10k, shuffled-10k and hn-10k

    • the same tasks in the three formats, but with 10,000 training examples, rather than 1000 training examples.
  • en-valid and en-valid-10k

    • are the same as en and en10k except the train sets have been conveniently split into train and valid portions (90% and 10% split).

To get a particular dataset, use load_dataset('babi_qa',type=f'{type}',task_no=f'{task_no}') where type is one of the types, and task_no is one of the task numbers. For example, load_dataset('babi_qa', type='en', task_no='qa1').

Languages

Dataset Structure

Data Instances

An instance from the en-qa1 config's train split:

{'story': {'answer': ['', '', 'bathroom', '', '', 'hallway', '', '', 'hallway', '', '', 'office', '', '', 'bathroom'], 'id': ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15'], 'supporting_ids': [[], [], ['1'], [], [], ['4'], [], [], ['4'], [], [], ['11'], [], [], ['8']], 'text': ['Mary moved to the bathroom.', 'John went to the hallway.', 'Where is Mary?', 'Daniel went back to the hallway.', 'Sandra moved to the garden.', 'Where is Daniel?', 'John moved to the office.', 'Sandra journeyed to the bathroom.', 'Where is Daniel?', 'Mary moved to the hallway.', 'Daniel travelled to the office.', 'Where is Daniel?', 'John went back to the garden.', 'John moved to the bedroom.', 'Where is Sandra?'], 'type': [0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1]}}

Data Fields

  • story: a dictionary feature containing:
    • id: a string feature, which denotes the line number in the example.
    • type: a classification label, with possible values including context, question, denoting whether the text is context or a question.
    • text: a string feature the text present, whether it is a question or context.
    • supporting_ids: a list of string features containing the line numbers of the lines in the example which support the answer.
    • answer: a string feature containing the answer to the question, or an empty string if the types is not question.

Data Splits

The splits and corresponding sizes are:

traintestvalidation
en-qa1200200-
en-qa2200200-
en-qa3200200-
en-qa410001000-
en-qa5200200-
en-qa6200200-
en-qa7200200-
en-qa8200200-
en-qa9200200-
en-qa10200200-
en-qa11200200-
en-qa12200200-
en-qa13200200-
en-qa14200200-
en-qa15250250-
en-qa1610001000-
en-qa17125125-
en-qa18198199-
en-qa1910001000-
en-qa209493-
en-10k-qa12000200-
en-10k-qa22000200-
en-10k-qa32000200-
en-10k-qa4100001000-
en-10k-qa52000200-
en-10k-qa62000200-
en-10k-qa72000200-
en-10k-qa82000200-
en-10k-qa92000200-
en-10k-qa102000200-
en-10k-qa112000200-
en-10k-qa122000200-
en-10k-qa132000200-
en-10k-qa142000200-
en-10k-qa152500250-
en-10k-qa16100001000-
en-10k-qa171250125-
en-10k-qa181978199-
en-10k-qa19100001000-
en-10k-qa2093393-
en-valid-qa118020020
en-valid-qa218020020
en-valid-qa318020020
en-valid-qa49001000100
en-valid-qa518020020
en-valid-qa618020020
en-valid-qa718020020
en-valid-qa818020020
en-valid-qa918020020
en-valid-qa1018020020
en-valid-qa1118020020
en-valid-qa1218020020
en-valid-qa1318020020
en-valid-qa1418020020
en-valid-qa1522525025
en-valid-qa169001000100
en-valid-qa1711312512
en-valid-qa1817919919
en-valid-qa199001000100
en-valid-qa2085939
en-valid-10k-qa11800200200
en-valid-10k-qa21800200200
en-valid-10k-qa31800200200
en-valid-10k-qa4900010001000
en-valid-10k-qa51800200200
en-valid-10k-qa61800200200
en-valid-10k-qa71800200200
en-valid-10k-qa81800200200
en-valid-10k-qa91800200200
en-valid-10k-qa101800200200
en-valid-10k-qa111800200200
en-valid-10k-qa121800200200
en-valid-10k-qa131800200200
en-valid-10k-qa141800200200
en-valid-10k-qa152250250250
en-valid-10k-qa16900010001000
en-valid-10k-qa171125125125
en-valid-10k-qa181781199197
en-valid-10k-qa19900010001000
en-valid-10k-qa208409393
hn-qa1200200-
hn-qa2200200-
hn-qa3167167-
hn-qa410001000-
hn-qa5200200-
hn-qa6200200-
hn-qa7200200-
hn-qa8200200-
hn-qa9200200-
hn-qa10200200-
hn-qa11200200-
hn-qa12200200-
hn-qa13125125-
hn-qa14200200-
hn-qa15250250-
hn-qa1610001000-
hn-qa17125125-
hn-qa18198198-
hn-qa1910001000-
hn-qa209394-
hn-10k-qa12000200-
hn-10k-qa22000200-
hn-10k-qa31667167-
hn-10k-qa4100001000-
hn-10k-qa52000200-
hn-10k-qa62000200-
hn-10k-qa72000200-
hn-10k-qa82000200-
hn-10k-qa92000200-
hn-10k-qa102000200-
hn-10k-qa112000200-
hn-10k-qa122000200-
hn-10k-qa131250125-
hn-10k-qa142000200-
hn-10k-qa152500250-
hn-10k-qa16100001000-
hn-10k-qa171250125-
hn-10k-qa181977198-
hn-10k-qa19100001000-
hn-10k-qa2093494-
shuffled-qa1200200-
shuffled-qa2200200-
shuffled-qa3200200-
shuffled-qa410001000-
shuffled-qa5200200-
shuffled-qa6200200-
shuffled-qa7200200-
shuffled-qa8200200-
shuffled-qa9200200-
shuffled-qa10200200-
shuffled-qa11200200-
shuffled-qa12200200-
shuffled-qa13200200-
shuffled-qa14200200-
shuffled-qa15250250-
shuffled-qa1610001000-
shuffled-qa17125125-
shuffled-qa18198199-
shuffled-qa1910001000-
shuffled-qa209493-
shuffled-10k-qa12000200-
shuffled-10k-qa22000200-
shuffled-10k-qa32000200-
shuffled-10k-qa4100001000-
shuffled-10k-qa52000200-
shuffled-10k-qa62000200-
shuffled-10k-qa72000200-
shuffled-10k-qa82000200-
shuffled-10k-qa92000200-
shuffled-10k-qa102000200-
shuffled-10k-qa112000200-
shuffled-10k-qa122000200-
shuffled-10k-qa132000200-
shuffled-10k-qa142000200-
shuffled-10k-qa152500250-
shuffled-10k-qa16100001000-
shuffled-10k-qa171250125-
shuffled-10k-qa181978199-
shuffled-10k-qa19100001000-
shuffled-10k-qa2093393-

Dataset Creation

Curation Rationale

[More Information Needed]

Source Data

Initial Data Collection and Normalization

Code to generate tasks is available on github

Who are the source language producers?

[More Information Needed]

Annotations

Annotation process

[More Information Needed]

Who are the annotators?

[More Information Needed]

Personal and Sensitive Information

[More Information Needed]

Considerations for Using the Data

Social Impact of Dataset

[More Information Needed]

Discussion of Biases

[More Information Needed]

Other Known Limitations

[More Information Needed]

Additional Information

Dataset Curators

Jesse Dodge and Andreea Gane and Xiang Zhang and Antoine Bordes and Sumit Chopra and Alexander Miller and Arthur Szlam and Jason Weston, at Facebook Research.

Licensing Information

Creative Commons Attribution 3.0 License

Citation Information

@misc{dodge2016evaluating,
      title={Evaluating Prerequisite Qualities for Learning End-to-End Dialog Systems}, 
      author={Jesse Dodge and Andreea Gane and Xiang Zhang and Antoine Bordes and Sumit Chopra and Alexander Miller and Arthur Szlam and Jason Weston},
      year={2016},
      eprint={1511.06931},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Contributions

Thanks to @gchhablani for adding this dataset.

Contributors

system

4 commits

lhoestq

3 commits

julien-c

1 commits