Upload dataset.jsonl

#1
by TeraSpace - opened

all samples was in string form of list
fixed:

from datasets import load_dataset
import ast
dataset = load_dataset("Den4ikAI/russian_dialogues_2")
def prepare_dataset(batch):
batch["sample"] = ast.literal_eval(batch["sample"])
return batch
dataset = dataset.map(prepare_dataset, num_proc=8)

Den4ikAI changed pull request status to closed
Den4ikAI changed pull request status to open
Den4ikAI changed pull request status to merged

Sign up or log in to comment