File size: 793 Bytes
ccb019e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
10K slice of OpenWebText - An open-source replication of the WebText dataset from OpenAI.
This is a small subset representing the first 10K records from the original dataset - created for testing.
The full 8M-record dataset is [here](https://huggingface.co/datasets/openwebtext).
```
$ python -c "from datasets import load_dataset; ds=load_dataset('stas/openwebtext-10k'); print(ds)"
DatasetDict({
train: Dataset({
features: ['text'],
num_rows: 10000
})
})
```
To convert to jsonlines:
```
from datasets import load_dataset
dataset_name = "stas/openwebtext-10k"
ds = load_dataset(dataset_name, split='train')
ds.to_json(f"{dataset_name}.jsonl", orient="records", lines=True)
```
To see how this subset was created, here is the [instructions file](./process.txt).
|