Datasets:
Update README.md load_dataset example to fix the deprecated 'config' argument
Browse files
README.md
CHANGED
|
@@ -167,7 +167,16 @@ You can find the valid pairs in Homepage section of Dataset Description: https:/
|
|
| 167 |
E.g.
|
| 168 |
|
| 169 |
```
|
| 170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
```
|
| 172 |
|
| 173 |
## Dataset Structure
|
|
|
|
| 167 |
E.g.
|
| 168 |
|
| 169 |
```
|
| 170 |
+
from datasets import load_dataset
|
| 171 |
+
dataset = load_dataset("yhavinga/ccmatrix", "en-nl", streaming=True)
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
This will open the `en-nl` dataset in streaming mode. Without streaming, download and prepare will take tens of minutes.
|
| 175 |
+
You can inspect elements with:
|
| 176 |
+
|
| 177 |
+
```
|
| 178 |
+
print(next(iter(dataset['train'])))
|
| 179 |
+
{'id': 0, 'score': 1.2499677, 'translation': {'en': 'They come from all parts of Egypt, just like they will at the day of His coming.', 'nl': 'Zij kwamen uit alle delen van Egypte, evenals zij op de dag van Zijn komst zullen doen.'}}
|
| 180 |
```
|
| 181 |
|
| 182 |
## Dataset Structure
|