| | --- |
| | configs: |
| | - config_name: ARC-Easy |
| | data_files: |
| | - split: train |
| | path: "ARC-Easy-Train.parquet" |
| | - split: validation |
| | path: "ARC-Easy-Validation.parquet" |
| | - config_name: ARC-Challenge |
| | data_files: |
| | - split: train |
| | path: "ARC-Challenge-Train.parquet" |
| | - split: validation |
| | path: "ARC-Challenge-Validation.parquet" |
| | --- |
| | |
| | ARC-Easy/Challenge with CoT few-shot exemplars introduced in the paper: https://arxiv.org/abs/2203.11171. |
| |
|
| | <details> |
| | <summary>Generation Code</summary> |
| | |
| | ```python |
| | import pandas as pd |
| | from datasets import load_dataset |
| | |
| | FEW_SHOT_EXEMPLARS = [ |
| | { |
| | "id": "Mercury_SC_415702", |
| | "question": "George wants to warm his hands quickly by rubbing them. Which skin surface will produce the most heat?", |
| | "choices": { |
| | "text": [ |
| | "dry palms", |
| | "wet palms", |
| | "palms covered with oil", |
| | "palms covered with lotion", |
| | ], |
| | "label": ["A", "B", "C", "D"], |
| | }, |
| | "answerKey": "A", |
| | "rationale": "Dry surfaces will more likely cause more friction via rubbing than other smoother surfaces, hence dry palms will produce the most heat.", |
| | }, |
| | { |
| | "id": "Mercury_7220990", |
| | "question": "Which factor will most likely cause a person to develop a fever?", |
| | "choices": { |
| | "text": [ |
| | "a leg muscle relaxing after exercise", |
| | "a bacterial population in the bloodstream", |
| | "several viral particles on the skin", |
| | "carbohydrates being digested in the stomach", |
| | ], |
| | "label": ["A", "B", "C", "D"], |
| | }, |
| | "answerKey": "B", |
| | "rationale": "Option B, bacterial population is the most likely cause for a person developing fever.", |
| | }, |
| | { |
| | "id": "Mercury_7205118", |
| | "question": "Which change in the state of water particles causes the particles to become arranged in a fixed position?", |
| | "choices": { |
| | "text": ["boiling", "melting", "freezing", "evaporating"], |
| | "label": ["A", "B", "C", "D"], |
| | }, |
| | "answerKey": "C", |
| | "rationale": "When water is freezed, the particles are arranged in a fixed position; the particles are still moving for all other options.", |
| | }, |
| | { |
| | "id": "Mercury_SC_401169", |
| | "question": "When a switch is used in an electrical circuit, the switch can", |
| | "choices": { |
| | "text": [ |
| | "cause the charge to build.", |
| | "increase and decrease the voltage.", |
| | "cause the current to change direction.", |
| | "stop and start the flow of current.", |
| | ], |
| | "label": ["A", "B", "C", "D"], |
| | }, |
| | "answerKey": "D", |
| | "rationale": "The function of a switch is to start and stop the flow of a current.", |
| | }, |
| | ] |
| | |
| | dataset = load_dataset("allenai/ai2_arc", "ARC-Easy", split="test").to_pandas() |
| | dataset["rationale"] = "" |
| | dataset.to_parquet("ARC-Easy-Validation.parquet", index=False) |
| | |
| | dataset = load_dataset("allenai/ai2_arc", "ARC-Challenge", split="test").to_pandas() |
| | dataset["rationale"] = "" |
| | dataset.to_parquet("ARC-Challenge-Validation.parquet", index=False) |
| | |
| | dataset = pd.DataFrame(FEW_SHOT_EXEMPLARS) |
| | dataset.to_parquet("ARC-Easy-Train.parquet", index=False) |
| | dataset.to_parquet("ARC-Challenge-Train.parquet", index=False) |
| | ``` |
| | </details> |
| |
|