jpcorb20 commited on
Commit
9ec39bd
·
verified ·
1 Parent(s): 92428ef

Update SIMORD.py

Browse files
Files changed (1) hide show
  1. SIMORD.py +7 -1
SIMORD.py CHANGED
@@ -46,6 +46,12 @@ _CITATION = r"""@article{corbeil2025empowering,
46
  _LICENSE = "CDLA-2.0-permissive"
47
  _HOMEPAGE = "https://huggingface.co/datasets/microsoft/SIMORD"
48
 
 
 
 
 
 
 
49
  # ----------------------- helpers to read upstream transcripts -----------------------
50
 
51
  def _walk_json_files(directory: str) -> List[str]:
@@ -220,7 +226,7 @@ class SimordMerge(datasets.GeneratorBasedBuilder):
220
  )
221
 
222
  def _split_generators(self, dl_manager):
223
- data_dir = dl_manager.download_and_extract("https://huggingface.co/datasets/microsoft/SIMORD/resolve/main/data")
224
 
225
  file_map = {
226
  "train.json": ("train", datasets.Split.TRAIN),
 
46
  _LICENSE = "CDLA-2.0-permissive"
47
  _HOMEPAGE = "https://huggingface.co/datasets/microsoft/SIMORD"
48
 
49
+ DATA_URLS = {
50
+ "train": "https://huggingface.co/datasets/microsoft/SIMORD/resolve/main/data/train.json",
51
+ "dev": "https://huggingface.co/datasets/microsoft/SIMORD/resolve/main/data/dev.json",
52
+ "test": "https://huggingface.co/datasets/microsoft/SIMORD/resolve/main/data/test.json",
53
+ }
54
+
55
  # ----------------------- helpers to read upstream transcripts -----------------------
56
 
57
  def _walk_json_files(directory: str) -> List[str]:
 
226
  )
227
 
228
  def _split_generators(self, dl_manager):
229
+ data_dir = dl_manager.download_and_extract(DATA_URLS)
230
 
231
  file_map = {
232
  "train.json": ("train", datasets.Split.TRAIN),