Update README.md
Browse files
README.md
CHANGED
|
@@ -35,10 +35,28 @@ dataset_info:
|
|
| 35 |
|
| 36 |
# How to use
|
| 37 |
```python
|
| 38 |
-
|
|
|
|
| 39 |
|
| 40 |
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
[More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
|
|
|
| 35 |
|
| 36 |
# How to use
|
| 37 |
```python
|
| 38 |
+
from datasets import load_dataset
|
| 39 |
+
import datasets
|
| 40 |
|
| 41 |
|
| 42 |
+
dataset = load_dataset('ranWang/un_corpus_for_sitemap')
|
| 43 |
+
|
| 44 |
+
for lang in dataset:
|
| 45 |
+
for colum in dataset[lang]:
|
| 46 |
+
# colum.keys = ['uuid', 'url', 'title', 'html_content']
|
| 47 |
+
# code...
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
OR
|
| 51 |
+
|
| 52 |
+
# you want to specify the language
|
| 53 |
+
dataset = load_dataset('ranWang/un_corpus_for_sitemap', split={lang})
|
| 54 |
|
| 55 |
+
for colum in dataset:
|
| 56 |
+
# colum.keys = ['uuid', 'url', 'title', 'html_content']
|
| 57 |
+
# code...
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
```
|
| 62 |
|
|
|