Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -39,12 +39,6 @@ from datasets import load_dataset
|
|
39 |
# Load full dataset
|
40 |
dataset = load_dataset("{username}/{dataset_name}")
|
41 |
|
42 |
-
# Stream dataset (memory efficient)
|
43 |
-
dataset = load_dataset(
|
44 |
-
"{username}/{dataset_name}",
|
45 |
-
streaming=True
|
46 |
-
)
|
47 |
-
|
48 |
# Filter by source
|
49 |
wiki_docs = dataset.filter(lambda x: x["source"] == "wikipedia")
|
50 |
```
|
|
|
39 |
# Load full dataset
|
40 |
dataset = load_dataset("{username}/{dataset_name}")
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
# Filter by source
|
43 |
wiki_docs = dataset.filter(lambda x: x["source"] == "wikipedia")
|
44 |
```
|