Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

These files were created with the following script:

from datasets import load_dataset
from tqdm import tqdm
import io

dataset = load_dataset("Skylion007/openwebtext")['train']
split_dataset = dataset.train_test_split(train_size=2400000, test_size=60000, seed=0)


with io.open('data/owt_train.txt','w') as fopen:
    listout = []
    for data in tqdm(split_dataset['train']):
        listout.append(data['text']+'<|endoftext|>')
        if len(listout) > 1000:
            _ = fopen.write(''.join(listout))
            listout = []


with io.open('data/owt_valid.txt','w') as fopen:
    listout = []
    for data in tqdm(split_dataset['test']):
        listout.append(data['text']+'<|endoftext|>')
        if len(listout) > 1000:
            _ = fopen.write(''.join(listout))
            listout = []
Downloads last month
2,588