update
Browse files
README.md
CHANGED
@@ -14,13 +14,18 @@ DatasetDict({
|
|
14 |
})
|
15 |
```
|
16 |
|
|
|
|
|
|
|
|
|
17 |
To convert to jsonlines:
|
18 |
|
19 |
```
|
20 |
from datasets import load_dataset
|
21 |
dataset_name = "stas/openwebtext-10k"
|
|
|
22 |
ds = load_dataset(dataset_name, split='train')
|
23 |
-
ds.to_json(f"{
|
24 |
```
|
25 |
|
26 |
To see how this subset was created, here is the [instructions file](./process.txt).
|
|
|
14 |
})
|
15 |
```
|
16 |
|
17 |
+
* Records: 10,000
|
18 |
+
* compressed size: ~15MB
|
19 |
+
* uncompressed size: 50MB
|
20 |
+
|
21 |
To convert to jsonlines:
|
22 |
|
23 |
```
|
24 |
from datasets import load_dataset
|
25 |
dataset_name = "stas/openwebtext-10k"
|
26 |
+
name = dataset_name.split('/')[-1]
|
27 |
ds = load_dataset(dataset_name, split='train')
|
28 |
+
ds.to_json(f"{name}.jsonl", orient="records", lines=True)
|
29 |
```
|
30 |
|
31 |
To see how this subset was created, here is the [instructions file](./process.txt).
|