passage
stringlengths 15
6.36k
| question
stringclasses 438
values | answer
stringclasses 56
values | task
int64 1
20
|
---|---|---|---|
Mary moved to the bathroom.
John went to the hallway.
| Where is Mary? | bathroom | 1 |
Mary moved to the bathroom.
John went to the hallway.
Daniel went back to the hallway.
Sandra moved to the garden.
| Where is Daniel? | hallway | 1 |
Mary moved to the bathroom.
John went to the hallway.
Daniel went back to the hallway.
Sandra moved to the garden.
John moved to the office.
Sandra journeyed to the bathroom.
| Where is Daniel? | hallway | 1 |
Mary moved to the bathroom.
John went to the hallway.
Daniel went back to the hallway.
Sandra moved to the garden.
John moved to the office.
Sandra journeyed to the bathroom.
Mary moved to the hallway.
Daniel travelled to the office.
| Where is Daniel? | office | 1 |
Mary moved to the bathroom.
John went to the hallway.
Daniel went back to the hallway.
Sandra moved to the garden.
John moved to the office.
Sandra journeyed to the bathroom.
Mary moved to the hallway.
Daniel travelled to the office.
John went back to the garden.
John moved to the bedroom.
| Where is Sandra? | bathroom | 1 |
Sandra travelled to the office.
Sandra went to the bathroom.
| Where is Sandra? | bathroom | 1 |
Sandra travelled to the office.
Sandra went to the bathroom.
Mary went to the bedroom.
Daniel moved to the hallway.
| Where is Sandra? | bathroom | 1 |
Sandra travelled to the office.
Sandra went to the bathroom.
Mary went to the bedroom.
Daniel moved to the hallway.
John went to the garden.
John travelled to the office.
| Where is Sandra? | bathroom | 1 |
Sandra travelled to the office.
Sandra went to the bathroom.
Mary went to the bedroom.
Daniel moved to the hallway.
John went to the garden.
John travelled to the office.
Daniel journeyed to the bedroom.
Daniel travelled to the hallway.
| Where is John? | office | 1 |
Sandra travelled to the office.
Sandra went to the bathroom.
Mary went to the bedroom.
Daniel moved to the hallway.
John went to the garden.
John travelled to the office.
Daniel journeyed to the bedroom.
Daniel travelled to the hallway.
John went to the bedroom.
John travelled to the office.
| Where is Daniel? | hallway | 1 |
Mary went to the bedroom.
John journeyed to the bathroom.
| Where is John? | bathroom | 1 |
Mary went to the bedroom.
John journeyed to the bathroom.
Sandra journeyed to the hallway.
John journeyed to the garden.
| Where is Mary? | bedroom | 1 |
Mary went to the bedroom.
John journeyed to the bathroom.
Sandra journeyed to the hallway.
John journeyed to the garden.
John journeyed to the bathroom.
Sandra journeyed to the garden.
| Where is John? | bathroom | 1 |
Mary went to the bedroom.
John journeyed to the bathroom.
Sandra journeyed to the hallway.
John journeyed to the garden.
John journeyed to the bathroom.
Sandra journeyed to the garden.
Sandra went back to the bedroom.
Daniel travelled to the bathroom.
| Where is John? | bathroom | 1 |
Mary went to the bedroom.
John journeyed to the bathroom.
Sandra journeyed to the hallway.
John journeyed to the garden.
John journeyed to the bathroom.
Sandra journeyed to the garden.
Sandra went back to the bedroom.
Daniel travelled to the bathroom.
John went to the office.
Mary moved to the office.
| Where is Sandra? | bedroom | 1 |
Mary moved to the garden.
John journeyed to the bathroom.
| Where is John? | bathroom | 1 |
Mary moved to the garden.
John journeyed to the bathroom.
Sandra moved to the office.
John moved to the kitchen.
| Where is Mary? | garden | 1 |
Mary moved to the garden.
John journeyed to the bathroom.
Sandra moved to the office.
John moved to the kitchen.
Sandra went to the hallway.
Mary travelled to the bedroom.
| Where is John? | kitchen | 1 |
Mary moved to the garden.
John journeyed to the bathroom.
Sandra moved to the office.
John moved to the kitchen.
Sandra went to the hallway.
Mary travelled to the bedroom.
Mary moved to the office.
John moved to the garden.
| Where is Sandra? | hallway | 1 |
Mary moved to the garden.
John journeyed to the bathroom.
Sandra moved to the office.
John moved to the kitchen.
Sandra went to the hallway.
Mary travelled to the bedroom.
Mary moved to the office.
John moved to the garden.
John journeyed to the office.
Sandra went to the office.
| Where is John? | office | 1 |
Mary moved to the garden.
Daniel journeyed to the bathroom.
| Where is Daniel? | bathroom | 1 |
Mary moved to the garden.
Daniel journeyed to the bathroom.
John travelled to the kitchen.
John went back to the bedroom.
| Where is John? | bedroom | 1 |
Mary moved to the garden.
Daniel journeyed to the bathroom.
John travelled to the kitchen.
John went back to the bedroom.
John moved to the office.
Daniel went back to the garden.
| Where is Daniel? | garden | 1 |
Mary moved to the garden.
Daniel journeyed to the bathroom.
John travelled to the kitchen.
John went back to the bedroom.
John moved to the office.
Daniel went back to the garden.
John went back to the hallway.
Mary went to the office.
| Where is John? | hallway | 1 |
Mary moved to the garden.
Daniel journeyed to the bathroom.
John travelled to the kitchen.
John went back to the bedroom.
John moved to the office.
Daniel went back to the garden.
John went back to the hallway.
Mary went to the office.
Sandra travelled to the bedroom.
John travelled to the garden.
| Where is Daniel? | garden | 1 |
John moved to the bedroom.
Mary moved to the hallway.
| Where is Mary? | hallway | 1 |
John moved to the bedroom.
Mary moved to the hallway.
Sandra moved to the bedroom.
Sandra travelled to the kitchen.
| Where is Sandra? | kitchen | 1 |
John moved to the bedroom.
Mary moved to the hallway.
Sandra moved to the bedroom.
Sandra travelled to the kitchen.
Daniel journeyed to the bathroom.
Sandra moved to the bathroom.
| Where is Daniel? | bathroom | 1 |
John moved to the bedroom.
Mary moved to the hallway.
Sandra moved to the bedroom.
Sandra travelled to the kitchen.
Daniel journeyed to the bathroom.
Sandra moved to the bathroom.
Daniel went back to the garden.
John moved to the kitchen.
| Where is John? | kitchen | 1 |
John moved to the bedroom.
Mary moved to the hallway.
Sandra moved to the bedroom.
Sandra travelled to the kitchen.
Daniel journeyed to the bathroom.
Sandra moved to the bathroom.
Daniel went back to the garden.
John moved to the kitchen.
Daniel journeyed to the kitchen.
Daniel journeyed to the garden.
| Where is Daniel? | garden | 1 |
Mary went to the kitchen.
John went back to the bedroom.
| Where is Mary? | kitchen | 1 |
Mary went to the kitchen.
John went back to the bedroom.
Mary went back to the bathroom.
Mary moved to the hallway.
| Where is John? | bedroom | 1 |
Mary went to the kitchen.
John went back to the bedroom.
Mary went back to the bathroom.
Mary moved to the hallway.
John went to the kitchen.
Daniel travelled to the bedroom.
| Where is Daniel? | bedroom | 1 |
Mary went to the kitchen.
John went back to the bedroom.
Mary went back to the bathroom.
Mary moved to the hallway.
John went to the kitchen.
Daniel travelled to the bedroom.
Mary travelled to the office.
Sandra moved to the bedroom.
| Where is John? | kitchen | 1 |
Mary went to the kitchen.
John went back to the bedroom.
Mary went back to the bathroom.
Mary moved to the hallway.
John went to the kitchen.
Daniel travelled to the bedroom.
Mary travelled to the office.
Sandra moved to the bedroom.
John moved to the bedroom.
Sandra journeyed to the kitchen.
| Where is Sandra? | kitchen | 1 |
Daniel moved to the hallway.
Daniel travelled to the office.
| Where is Daniel? | office | 1 |
Daniel moved to the hallway.
Daniel travelled to the office.
Daniel went to the bedroom.
Daniel journeyed to the office.
| Where is Daniel? | office | 1 |
Daniel moved to the hallway.
Daniel travelled to the office.
Daniel went to the bedroom.
Daniel journeyed to the office.
Sandra went back to the bathroom.
Sandra journeyed to the kitchen.
| Where is Daniel? | office | 1 |
Daniel moved to the hallway.
Daniel travelled to the office.
Daniel went to the bedroom.
Daniel journeyed to the office.
Sandra went back to the bathroom.
Sandra journeyed to the kitchen.
Daniel moved to the bedroom.
Daniel journeyed to the hallway.
| Where is Sandra? | kitchen | 1 |
Daniel moved to the hallway.
Daniel travelled to the office.
Daniel went to the bedroom.
Daniel journeyed to the office.
Sandra went back to the bathroom.
Sandra journeyed to the kitchen.
Daniel moved to the bedroom.
Daniel journeyed to the hallway.
Sandra travelled to the garden.
Sandra went back to the bathroom.
| Where is Daniel? | hallway | 1 |
Sandra went to the garden.
Sandra journeyed to the bedroom.
| Where is Sandra? | bedroom | 1 |
Sandra went to the garden.
Sandra journeyed to the bedroom.
Mary travelled to the bathroom.
John journeyed to the bedroom.
| Where is Sandra? | bedroom | 1 |
Sandra went to the garden.
Sandra journeyed to the bedroom.
Mary travelled to the bathroom.
John journeyed to the bedroom.
Mary went back to the kitchen.
John went to the kitchen.
| Where is John? | kitchen | 1 |
Sandra went to the garden.
Sandra journeyed to the bedroom.
Mary travelled to the bathroom.
John journeyed to the bedroom.
Mary went back to the kitchen.
John went to the kitchen.
Daniel travelled to the kitchen.
Sandra travelled to the bathroom.
| Where is Sandra? | bathroom | 1 |
Sandra went to the garden.
Sandra journeyed to the bedroom.
Mary travelled to the bathroom.
John journeyed to the bedroom.
Mary went back to the kitchen.
John went to the kitchen.
Daniel travelled to the kitchen.
Sandra travelled to the bathroom.
Sandra went back to the garden.
John went back to the garden.
| Where is Daniel? | kitchen | 1 |
Sandra went back to the bathroom.
Mary moved to the garden.
| Where is Mary? | garden | 1 |
Sandra went back to the bathroom.
Mary moved to the garden.
Mary went back to the hallway.
Sandra went to the office.
| Where is Sandra? | office | 1 |
Sandra went back to the bathroom.
Mary moved to the garden.
Mary went back to the hallway.
Sandra went to the office.
John went back to the hallway.
John travelled to the office.
| Where is Sandra? | office | 1 |
Sandra went back to the bathroom.
Mary moved to the garden.
Mary went back to the hallway.
Sandra went to the office.
John went back to the hallway.
John travelled to the office.
Sandra journeyed to the hallway.
Daniel moved to the office.
| Where is John? | office | 1 |
Sandra went back to the bathroom.
Mary moved to the garden.
Mary went back to the hallway.
Sandra went to the office.
John went back to the hallway.
John travelled to the office.
Sandra journeyed to the hallway.
Daniel moved to the office.
Mary went to the office.
Sandra went to the office.
| Where is John? | office | 1 |
Mary went back to the office.
John went back to the bathroom.
| Where is Mary? | office | 1 |
Mary went back to the office.
John went back to the bathroom.
John went to the hallway.
Mary journeyed to the hallway.
| Where is Mary? | hallway | 1 |
Mary went back to the office.
John went back to the bathroom.
John went to the hallway.
Mary journeyed to the hallway.
Sandra travelled to the hallway.
Mary travelled to the office.
| Where is John? | hallway | 1 |
Mary went back to the office.
John went back to the bathroom.
John went to the hallway.
Mary journeyed to the hallway.
Sandra travelled to the hallway.
Mary travelled to the office.
Mary went back to the hallway.
Sandra travelled to the office.
| Where is Sandra? | office | 1 |
Mary went back to the office.
John went back to the bathroom.
John went to the hallway.
Mary journeyed to the hallway.
Sandra travelled to the hallway.
Mary travelled to the office.
Mary went back to the hallway.
Sandra travelled to the office.
John went to the kitchen.
Sandra went to the hallway.
| Where is Mary? | hallway | 1 |
Sandra moved to the hallway.
John moved to the hallway.
| Where is John? | hallway | 1 |
Sandra moved to the hallway.
John moved to the hallway.
John journeyed to the bathroom.
Daniel went back to the bedroom.
| Where is John? | bathroom | 1 |
Sandra moved to the hallway.
John moved to the hallway.
John journeyed to the bathroom.
Daniel went back to the bedroom.
Mary travelled to the bedroom.
Mary journeyed to the garden.
| Where is Daniel? | bedroom | 1 |
Sandra moved to the hallway.
John moved to the hallway.
John journeyed to the bathroom.
Daniel went back to the bedroom.
Mary travelled to the bedroom.
Mary journeyed to the garden.
John travelled to the bedroom.
Sandra journeyed to the garden.
| Where is Daniel? | bedroom | 1 |
Sandra moved to the hallway.
John moved to the hallway.
John journeyed to the bathroom.
Daniel went back to the bedroom.
Mary travelled to the bedroom.
Mary journeyed to the garden.
John travelled to the bedroom.
Sandra journeyed to the garden.
John journeyed to the kitchen.
Sandra went to the kitchen.
| Where is John? | kitchen | 1 |
Daniel went to the kitchen.
Mary travelled to the hallway.
| Where is Daniel? | kitchen | 1 |
Daniel went to the kitchen.
Mary travelled to the hallway.
Daniel went back to the garden.
Mary went back to the bathroom.
| Where is Mary? | bathroom | 1 |
Daniel went to the kitchen.
Mary travelled to the hallway.
Daniel went back to the garden.
Mary went back to the bathroom.
Sandra moved to the hallway.
John moved to the garden.
| Where is Daniel? | garden | 1 |
Daniel went to the kitchen.
Mary travelled to the hallway.
Daniel went back to the garden.
Mary went back to the bathroom.
Sandra moved to the hallway.
John moved to the garden.
Daniel moved to the kitchen.
Mary travelled to the office.
| Where is Daniel? | kitchen | 1 |
Daniel went to the kitchen.
Mary travelled to the hallway.
Daniel went back to the garden.
Mary went back to the bathroom.
Sandra moved to the hallway.
John moved to the garden.
Daniel moved to the kitchen.
Mary travelled to the office.
Daniel travelled to the hallway.
Sandra travelled to the bathroom.
| Where is Sandra? | bathroom | 1 |
Sandra moved to the kitchen.
Sandra went back to the garden.
| Where is Sandra? | garden | 1 |
Sandra moved to the kitchen.
Sandra went back to the garden.
Sandra journeyed to the office.
Mary moved to the office.
| Where is Mary? | office | 1 |
Sandra moved to the kitchen.
Sandra went back to the garden.
Sandra journeyed to the office.
Mary moved to the office.
Sandra journeyed to the bathroom.
Daniel moved to the office.
| Where is Sandra? | bathroom | 1 |
Sandra moved to the kitchen.
Sandra went back to the garden.
Sandra journeyed to the office.
Mary moved to the office.
Sandra journeyed to the bathroom.
Daniel moved to the office.
Daniel went back to the kitchen.
Mary moved to the hallway.
| Where is Mary? | hallway | 1 |
Sandra moved to the kitchen.
Sandra went back to the garden.
Sandra journeyed to the office.
Mary moved to the office.
Sandra journeyed to the bathroom.
Daniel moved to the office.
Daniel went back to the kitchen.
Mary moved to the hallway.
John went to the office.
Sandra went to the office.
| Where is John? | office | 1 |
Sandra went to the garden.
Mary travelled to the bathroom.
| Where is Sandra? | garden | 1 |
Sandra went to the garden.
Mary travelled to the bathroom.
Sandra moved to the bathroom.
Mary travelled to the hallway.
| Where is Mary? | hallway | 1 |
Sandra went to the garden.
Mary travelled to the bathroom.
Sandra moved to the bathroom.
Mary travelled to the hallway.
Mary went back to the kitchen.
Daniel travelled to the bedroom.
| Where is Mary? | kitchen | 1 |
Sandra went to the garden.
Mary travelled to the bathroom.
Sandra moved to the bathroom.
Mary travelled to the hallway.
Mary went back to the kitchen.
Daniel travelled to the bedroom.
Mary journeyed to the bedroom.
Mary journeyed to the office.
| Where is Daniel? | bedroom | 1 |
Sandra went to the garden.
Mary travelled to the bathroom.
Sandra moved to the bathroom.
Mary travelled to the hallway.
Mary went back to the kitchen.
Daniel travelled to the bedroom.
Mary journeyed to the bedroom.
Mary journeyed to the office.
Mary went back to the bedroom.
Daniel went to the garden.
| Where is Mary? | bedroom | 1 |
Mary journeyed to the garden.
Sandra went back to the office.
| Where is Sandra? | office | 1 |
Mary journeyed to the garden.
Sandra went back to the office.
Sandra went to the bathroom.
John travelled to the bathroom.
| Where is Sandra? | bathroom | 1 |
Mary journeyed to the garden.
Sandra went back to the office.
Sandra went to the bathroom.
John travelled to the bathroom.
Sandra moved to the bedroom.
Sandra travelled to the hallway.
| Where is Sandra? | hallway | 1 |
Mary journeyed to the garden.
Sandra went back to the office.
Sandra went to the bathroom.
John travelled to the bathroom.
Sandra moved to the bedroom.
Sandra travelled to the hallway.
Mary moved to the bathroom.
John went to the kitchen.
| Where is Mary? | bathroom | 1 |
Mary journeyed to the garden.
Sandra went back to the office.
Sandra went to the bathroom.
John travelled to the bathroom.
Sandra moved to the bedroom.
Sandra travelled to the hallway.
Mary moved to the bathroom.
John went to the kitchen.
Daniel moved to the bathroom.
Daniel went to the office.
| Where is John? | kitchen | 1 |
Mary moved to the office.
Daniel went to the kitchen.
| Where is Mary? | office | 1 |
Mary moved to the office.
Daniel went to the kitchen.
Sandra went to the bathroom.
Daniel moved to the office.
| Where is Daniel? | office | 1 |
Mary moved to the office.
Daniel went to the kitchen.
Sandra went to the bathroom.
Daniel moved to the office.
Sandra went to the office.
Sandra went to the hallway.
| Where is Daniel? | office | 1 |
Mary moved to the office.
Daniel went to the kitchen.
Sandra went to the bathroom.
Daniel moved to the office.
Sandra went to the office.
Sandra went to the hallway.
Mary went to the garden.
Daniel moved to the kitchen.
| Where is Sandra? | hallway | 1 |
Mary moved to the office.
Daniel went to the kitchen.
Sandra went to the bathroom.
Daniel moved to the office.
Sandra went to the office.
Sandra went to the hallway.
Mary went to the garden.
Daniel moved to the kitchen.
Mary went back to the kitchen.
John journeyed to the hallway.
| Where is Mary? | kitchen | 1 |
Mary went back to the hallway.
Sandra journeyed to the garden.
| Where is Sandra? | garden | 1 |
Mary went back to the hallway.
Sandra journeyed to the garden.
Sandra travelled to the bathroom.
John travelled to the hallway.
| Where is Sandra? | bathroom | 1 |
Mary went back to the hallway.
Sandra journeyed to the garden.
Sandra travelled to the bathroom.
John travelled to the hallway.
John travelled to the garden.
Mary journeyed to the bedroom.
| Where is Mary? | bedroom | 1 |
Mary went back to the hallway.
Sandra journeyed to the garden.
Sandra travelled to the bathroom.
John travelled to the hallway.
John travelled to the garden.
Mary journeyed to the bedroom.
Sandra journeyed to the office.
Daniel journeyed to the hallway.
| Where is John? | garden | 1 |
Mary went back to the hallway.
Sandra journeyed to the garden.
Sandra travelled to the bathroom.
John travelled to the hallway.
John travelled to the garden.
Mary journeyed to the bedroom.
Sandra journeyed to the office.
Daniel journeyed to the hallway.
Mary journeyed to the hallway.
Mary moved to the bedroom.
| Where is Mary? | bedroom | 1 |
Sandra journeyed to the kitchen.
Sandra journeyed to the garden.
| Where is Sandra? | garden | 1 |
Sandra journeyed to the kitchen.
Sandra journeyed to the garden.
Daniel travelled to the kitchen.
Mary moved to the bedroom.
| Where is Sandra? | garden | 1 |
Sandra journeyed to the kitchen.
Sandra journeyed to the garden.
Daniel travelled to the kitchen.
Mary moved to the bedroom.
Sandra moved to the bedroom.
John travelled to the garden.
| Where is Sandra? | bedroom | 1 |
Sandra journeyed to the kitchen.
Sandra journeyed to the garden.
Daniel travelled to the kitchen.
Mary moved to the bedroom.
Sandra moved to the bedroom.
John travelled to the garden.
Sandra went back to the kitchen.
John journeyed to the bedroom.
| Where is Sandra? | kitchen | 1 |
Sandra journeyed to the kitchen.
Sandra journeyed to the garden.
Daniel travelled to the kitchen.
Mary moved to the bedroom.
Sandra moved to the bedroom.
John travelled to the garden.
Sandra went back to the kitchen.
John journeyed to the bedroom.
Daniel went back to the bathroom.
Sandra journeyed to the bedroom.
| Where is Daniel? | bathroom | 1 |
Mary went back to the hallway.
Daniel went back to the bedroom.
| Where is Mary? | hallway | 1 |
Mary went back to the hallway.
Daniel went back to the bedroom.
Sandra moved to the bathroom.
Sandra journeyed to the hallway.
| Where is Sandra? | hallway | 1 |
Mary went back to the hallway.
Daniel went back to the bedroom.
Sandra moved to the bathroom.
Sandra journeyed to the hallway.
Mary went back to the bedroom.
Mary went back to the garden.
| Where is Mary? | garden | 1 |
Mary went back to the hallway.
Daniel went back to the bedroom.
Sandra moved to the bathroom.
Sandra journeyed to the hallway.
Mary went back to the bedroom.
Mary went back to the garden.
Sandra went back to the bathroom.
John went to the office.
| Where is John? | office | 1 |
Mary went back to the hallway.
Daniel went back to the bedroom.
Sandra moved to the bathroom.
Sandra journeyed to the hallway.
Mary went back to the bedroom.
Mary went back to the garden.
Sandra went back to the bathroom.
John went to the office.
Daniel travelled to the garden.
Sandra travelled to the hallway.
| Where is John? | office | 1 |
End of preview. Expand
in Dataset Viewer.
YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/datasets-cards)
For the bAbI as used in Scaling Data-Constrained Language Models use commit e332ae8a626bb17178026dd14797abb9da31376e
Creation (Copied & adapted from https://github.com/stanford-crfm/helm/blob/0eaaa62a2263ddb94e9850ee629423b010f57e4a/src/helm/benchmark/scenarios/babi_qa_scenario.py):
!wget http://www.thespermwhale.com/jaseweston/babi/tasks_1-20_v1-2.tar.gz
!tar -xf tasks_1-20_v1-2.tar.gz
import json
from typing import List
tasks = list(range(1, 21))
splits = ["train", "valid", "test"]
def process_path(path: str) -> str:
"""Turn a path string (task 19) from the original format 's,w' to a verbal model-friendly format 'south west'"""
steps: List[str] = path.split(",")
directions = {"s": "south", "n": "north", "e": "east", "w": "west"}
path = " ".join([directions[step] for step in steps])
return path
for split in splits:
with open(f"babi_{split}.jsonl", "w") as f_base:
for task in tasks:
split_path: str = f"./tasks_1-20_v1-2/en-valid/qa{task}_{split}.txt"
with open(split_path, "r") as f:
facts = list(f)
story: List[str] = []
for fact in facts:
fid = int(fact.split(" ")[0])
if fid == 1:
story = []
fact = " ".join(fact.split(" ")[1:])
is_question = "?" in fact
if is_question:
question, answer = fact.split("\t")[:2]
question, answer = question.strip(), answer.strip()
# All tasks except task 19 have a verbal single-word answer (e.g. kitchen, apple, yes).
# Task 19 (path finding) has a non verbal answer format (
if task == 19:
answer = process_path(answer)
f_base.write(json.dumps({
"passage": "".join(story),
"question": question,
"answer": answer,
"task": task,
}) + "\n")
if "?" in story:
print("STORY", "".join(story))
else:
story.append(fact)
- Downloads last month
- 758