Update README.md
Browse files
README.md
CHANGED
|
@@ -104,14 +104,14 @@ Download a single file with datasets
|
|
| 104 |
```python
|
| 105 |
from datasets import load_dataset
|
| 106 |
|
| 107 |
-
dataset = load_dataset("ai-lab/MBD", 'client_split')
|
| 108 |
```
|
| 109 |
|
| 110 |
Download a single file with huggingface_hub
|
| 111 |
```python
|
| 112 |
from huggingface_hub import hf_hub_download
|
| 113 |
|
| 114 |
-
hf_hub_download(repo_id="ai-lab/MBD", filename="client_split.tar.gz", repo_type="dataset")
|
| 115 |
|
| 116 |
# By default dataset is saved in '~/.cache/huggingface/hub/datasets--ai-lab--MBD/snapshots/<hash>/'
|
| 117 |
# To overwrite this behavior try to use local_dir
|
|
@@ -122,14 +122,14 @@ Download entire repository with datasets
|
|
| 122 |
```python
|
| 123 |
from datasets import load_dataset
|
| 124 |
|
| 125 |
-
dataset = load_dataset("ai-lab/MBD")
|
| 126 |
```
|
| 127 |
|
| 128 |
Download entire repository with huggingface_hub
|
| 129 |
```python
|
| 130 |
from huggingface_hub import snapshot_download
|
| 131 |
|
| 132 |
-
snapshot_download(repo_id="ai-lab/MBD")
|
| 133 |
|
| 134 |
# By default dataset is saved in '~/.cache/huggingface/hub/datasets--ai-lab--MBD/snapshots/<hash>/'
|
| 135 |
# To overwrite this behavior try to use local_dir
|
|
|
|
| 104 |
```python
|
| 105 |
from datasets import load_dataset
|
| 106 |
|
| 107 |
+
dataset = load_dataset("ai-lab/MBD-mini", data_files='client_split')
|
| 108 |
```
|
| 109 |
|
| 110 |
Download a single file with huggingface_hub
|
| 111 |
```python
|
| 112 |
from huggingface_hub import hf_hub_download
|
| 113 |
|
| 114 |
+
hf_hub_download(repo_id="ai-lab/MBD-mini", filename="client_split.tar.gz", repo_type="dataset")
|
| 115 |
|
| 116 |
# By default dataset is saved in '~/.cache/huggingface/hub/datasets--ai-lab--MBD/snapshots/<hash>/'
|
| 117 |
# To overwrite this behavior try to use local_dir
|
|
|
|
| 122 |
```python
|
| 123 |
from datasets import load_dataset
|
| 124 |
|
| 125 |
+
dataset = load_dataset("ai-lab/MBD-mini")
|
| 126 |
```
|
| 127 |
|
| 128 |
Download entire repository with huggingface_hub
|
| 129 |
```python
|
| 130 |
from huggingface_hub import snapshot_download
|
| 131 |
|
| 132 |
+
snapshot_download(repo_id="ai-lab/MBD-mini")
|
| 133 |
|
| 134 |
# By default dataset is saved in '~/.cache/huggingface/hub/datasets--ai-lab--MBD/snapshots/<hash>/'
|
| 135 |
# To overwrite this behavior try to use local_dir
|