Valahaar commited on
Commit
88e5b61
1 Parent(s): 0a5dff4
Files changed (1) hide show
  1. wsdmt.py +6 -4
wsdmt.py CHANGED
@@ -70,11 +70,13 @@ class WSDMTDataset(datasets.GeneratorBasedBuilder):
70
  )
71
 
72
  def _split_generators(self, dl_manager: DownloadManager):
73
- urls = [
74
- f"data/{self.config.corpus}/{split}/{lang}.jsonl"
 
 
 
75
  for split in ['dev']
76
- for lang in (self.config.lang1, self.config.lang2)
77
- ]
78
  x = dl_manager.download_and_extract(urls)
79
  print(x)
80
 
 
70
  )
71
 
72
  def _split_generators(self, dl_manager: DownloadManager):
73
+ urls = {
74
+ split: {
75
+ self.config.lang1: f"data/{self.config.corpus}/{split}/{self.config.lang1}.jsonl",
76
+ self.config.lang2: f"data/{self.config.corpus}/{split}/{self.config.lang2}.jsonl",
77
+ }
78
  for split in ['dev']
79
+ }
 
80
  x = dl_manager.download_and_extract(urls)
81
  print(x)
82