metadata
license: mit
source_datasets:
- euclaise/reddit-instruct
Conversion of euclaise/reddit-instruct dataset to be used in pretraining.
Python code used for conversion:
from datasets import load_dataset
import pandas
import html
dataset = load_dataset("euclaise/reddit-instruct", split="train")
def format(columns):
return html.unescape(columns["comment_text"].strip())
pandas.DataFrame({"text": [format(columns) for columns in dataset]}).to_csv("train.csv", index=False)