Datasets:

Lauler commited on
Commit
cb4e874
1 Parent(s): dd34f16

Change cache_folder arg name to cache_dir

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -38,12 +38,12 @@ Tasks are not supported by default (there are no label fields). The dataset may
38
 
39
  ### How to use
40
 
41
- To download and extract the files locally you can use `load_dataset()`. We recommend you set the `cache_folder` argument to point to a location that has plenty of disk space (1.2TB+). Here's how to download the `train` split:
42
 
43
  ```python
44
  from datasets import load_dataset
45
  # To download/load all splits at once, don't specify a split
46
- rixvox = load_dataset("KBLab/rixvox", split="train", cache_folder="data_rixvox")
47
  ```
48
 
49
  You can also stream the dataset. This is useful if you want to explore the dataset or if you don't have enough disk space to download the entire dataset. Here's how to stream the `train` split:
@@ -67,7 +67,7 @@ Local mode:
67
  from datasets import load_dataset
68
  from torch.utils.data.sampler import BatchSampler, RandomSampler
69
  # Dataset is not pre-shuffled, recommend shuffling it before training.
70
- rixvox = load_dataset("KBLab/rixvox", split="train", cache_folder="data_rixvox")
71
  batch_sampler = BatchSampler(RandomSampler(rixvox), batch_size=32, drop_last=False)
72
  dataloader = DataLoader(rixvox, batch_sampler=batch_sampler)
73
  ```
@@ -77,7 +77,7 @@ Streaming mode:
77
  ```python
78
  from datasets import load_dataset
79
  from torch.utils.data import DataLoader
80
- rixvox = load_dataset("KBLab/rixvox", split="train", cache_folder="data_rixvox")
81
  dataloader = DataLoader(rixvox, batch_size=32)
82
  ```
83
 
 
38
 
39
  ### How to use
40
 
41
+ To download and extract the files locally you can use `load_dataset()`. We recommend you set the `cache_dir` argument to point to a location that has plenty of disk space (1.2TB+). Here's how to download the `train` split:
42
 
43
  ```python
44
  from datasets import load_dataset
45
  # To download/load all splits at once, don't specify a split
46
+ rixvox = load_dataset("KBLab/rixvox", split="train", cache_dir="data_rixvox")
47
  ```
48
 
49
  You can also stream the dataset. This is useful if you want to explore the dataset or if you don't have enough disk space to download the entire dataset. Here's how to stream the `train` split:
 
67
  from datasets import load_dataset
68
  from torch.utils.data.sampler import BatchSampler, RandomSampler
69
  # Dataset is not pre-shuffled, recommend shuffling it before training.
70
+ rixvox = load_dataset("KBLab/rixvox", split="train", cache_dir="data_rixvox")
71
  batch_sampler = BatchSampler(RandomSampler(rixvox), batch_size=32, drop_last=False)
72
  dataloader = DataLoader(rixvox, batch_sampler=batch_sampler)
73
  ```
 
77
  ```python
78
  from datasets import load_dataset
79
  from torch.utils.data import DataLoader
80
+ rixvox = load_dataset("KBLab/rixvox", split="train", cache_dir="data_rixvox")
81
  dataloader = DataLoader(rixvox, batch_size=32)
82
  ```
83