clemsadand commited on
Commit
322a7fa
·
verified ·
1 Parent(s): 59add17

Update small_mc4.py

Browse files
Files changed (1) hide show
  1. small_mc4.py +6 -1
small_mc4.py CHANGED
@@ -44,6 +44,11 @@ _N_SHARDS_PER_SPLIT = {
44
  "fr": {"train": 2048, "validation": 16},
45
  }
46
 
 
 
 
 
 
47
 
48
  # import requests
49
 
@@ -109,7 +114,7 @@ class Mc4(datasets.GeneratorBasedBuilder):
109
  n_shards=_N_SHARDS_PER_SPLIT[lang][split],
110
  )
111
  for lang in self.config.languages
112
- for index in range(10)
113
  ]
114
  train_downloaded_files = dl_manager.download(data_urls["train"])
115
  validation_downloaded_files = dl_manager.download(data_urls["validation"])
 
44
  "fr": {"train": 2048, "validation": 16},
45
  }
46
 
47
+ _N_SHARDS_PER_SPLIT_CUSTOMISED = {
48
+ "en": {"train": 1000, "validation": 10},
49
+ "fr": {"train": 1000, "validation": 10},
50
+ }
51
+
52
 
53
  # import requests
54
 
 
114
  n_shards=_N_SHARDS_PER_SPLIT[lang][split],
115
  )
116
  for lang in self.config.languages
117
+ for index in range(_N_SHARDS_PER_SPLIT_CUSTOMISED[lang][split])
118
  ]
119
  train_downloaded_files = dl_manager.download(data_urls["train"])
120
  validation_downloaded_files = dl_manager.download(data_urls["validation"])