{ "cells": [ { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "from datasets import load_dataset\n", "import json" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "DatasetDict({\n", " 2022_math: Dataset({\n", " features: ['id', 'name', 'problem', 'answer', 'score', 'review'],\n", " num_rows: 46\n", " })\n", " 2023_math: Dataset({\n", " features: ['id', 'name', 'problem', 'answer', 'score', 'review'],\n", " num_rows: 46\n", " })\n", " 2024_math: Dataset({\n", " features: ['id', 'name', 'problem', 'answer', 'score', 'review'],\n", " num_rows: 46\n", " })\n", "})" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "dataset=load_dataset(\"json\",data_files={\"2022_math\":\"./data/json/2022/math.json\",\n", " \"2023_math\":\"./data/json/2023/math.json\",\n", " \"2024_math\":\"./data/json/2024/math.json\"})\n", "dataset" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "f5b5c0e5ec724fb08692950a578a8178", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Uploading the dataset shards: 0%| | 0/1 [00:00