id
stringclasses
7 values
question
stringclasses
7 values
question_concept
stringclasses
7 values
choices
dict
answerKey
stringclasses
4 values
rationale
stringclasses
7 values
86c59f14af97b33ec13edc6ec4389e31
What do people use to absorb extra ink from a fountain pen?
fountain pen
{ "label": [ "A", "B", "C", "D", "E" ], "text": [ "shirt pocket", "calligrapher's hand", "inkwell", "desk drawer", "blotter" ] }
E
The answer must be an item that can absorb ink. Of the above choices, only blotters are used to absorb ink.
e8a8b3a2061aa0e6d7c6b522e9612824
What home entertainment equipment requires cable?
cable
{ "label": [ "A", "B", "C", "D", "E" ], "text": [ "radio shack", "substation", "cabinet", "television", "desk" ] }
D
The answer must require cable. Of the above choices, only television requires cable.
23505889b94e880c3e89cff4ba119860
The fox walked from the city into the forest, what was it looking for?
fox
{ "label": [ "A", "B", "C", "D", "E" ], "text": [ "pretty flowers.", "hen house", "natural habitat", "storybook", "dense forest" ] }
C
The answer must be something in the forest. Of the above choices, only natural habitat is in the forest.
61fe6e879ff18686d7552425a36344c8
Sammy wanted to go to where the people were. Where might he go?
people
{ "label": [ "A", "B", "C", "D", "E" ], "text": [ "race track", "populated areas", "the desert", "apartment", "roadblock" ] }
B
The answer must be a place with a lot of people. Of the above choices, only populated areas have a lot of people.
1a7f5b3c65364d9be002576660c914fe
Where do you put your grapes just before checking out?
grape
{ "label": [ "A", "B", "C", "D", "E" ], "text": [ "mouth", "grocery cart", "super market", "fruit basket", "fruit market" ] }
B
The answer should be the place where grocery items are placed before checking out. Of the above choices, grocery cart makes the most sense for holding grocery items.
02e821a3e53cb320790950aab4489e85
Google Maps and other highway and street GPS services have replaced what?
highway
{ "label": [ "A", "B", "C", "D", "E" ], "text": [ "united states", "mexico", "countryside", "atlas", "oceans" ] }
D
The answer must be something that used to do what Google Maps and GPS services do, which is to give directions. Of the above choices, only atlases are used to give directions.
dac769116ed064bc70936c15eb822c3e
Before getting a divorce, what did the wife feel who was doing all the work?
getting divorce
{ "label": [ "A", "B", "C", "D", "E" ], "text": [ "harder", "anguish", "bitterness", "tears", "sadness" ] }
C
The answer should be the feeling of someone getting divorced who was doing all the work. Of the above choices, the closest feeling is bitterness.

Commonsense-QA with CoT few-shot exemplars introduced in the paper: https://arxiv.org/pdf/2201.11903.

Generation Code
import pandas as pd
from datasets import load_dataset

FEW_SHOT_EXEMPLARS = [
  {
      "question": "What do people use to absorb extra ink from a fountain pen?",
      "rationale": "The answer must be an item that can absorb ink. Of the above choices, only blotters are used to absorb ink.",
  },
  {
      "question": "What home entertainment equipment requires cable?",
      "rationale": "The answer must require cable. Of the above choices, only television requires cable.",
  },
  {
      "question": "The fox walked from the city into the forest, what was it looking for?",
      "rationale": "The answer must be something in the forest. Of the above choices, only natural habitat is in the forest.",
  },
  {
      "question": "Sammy wanted to go to where the people were.  Where might he go?",
      "rationale": "The answer must be a place with a lot of people. Of the above choices, only populated areas have a lot of people.",
  },
  {
      "question": "Where do you put your grapes just before checking out?",
      "rationale": "The answer should be the place where grocery items are placed before checking out. Of the above choices, grocery cart makes the most sense for holding grocery items.",
  },
  {
      "question": "Google Maps and other highway and street GPS services have replaced what?",
      "rationale": "The answer must be something that used to do what Google Maps and GPS services do, which is to give directions. Of the above choices, only atlases are used to give directions.",
  },
  {
      "question": "Before getting a divorce, what did the wife feel who was doing all the work?",
      "rationale": "The answer should be the feeling of someone getting divorced who was doing all the work. Of the above choices, the closest feeling is bitterness.",
  },
]


dataset = load_dataset("tau/commonsense_qa", split="validation").to_pandas()
dataset["rationale"] = ""
dataset.to_parquet("csqa-Validation.parquet", index=False)


examples = []
dataset = load_dataset("tau/commonsense_qa", split="train").to_pandas()
for example in FEW_SHOT_EXEMPLARS:
  row = dataset[dataset["question"] == example["question"]].iloc[0]
  row["rationale"] = example["rationale"]
  examples.append(row)
pd.DataFrame(examples).to_parquet("csqa-Train.parquet", index=False)
Downloads last month
45