kuroneko5943 commited on
Commit
d66d66e
·
1 Parent(s): b782bf9

Update jd21.py

Browse files
Files changed (1) hide show
  1. jd21.py +3 -5
jd21.py CHANGED
@@ -70,12 +70,10 @@ class JD21(datasets.GeneratorBasedBuilder):
70
  )
71
 
72
  def _split_generators(self, dl_manager):
73
- downloaded_file = dl_manager.download_and_extract(self.config.data_url)
74
- print(downloaded_file)
75
 
76
- test_file = rf'{downloaded_file}test\{self.config.name}.txt'
77
- dev_file = rf'{downloaded_file}dev\{self.config.name}.txt'
78
- train_file = rf'{downloaded_file}train\{self.config.name}.txt'
79
  return [datasets.SplitGenerator(name=datasets.Split.TEST,
80
  gen_kwargs={
81
  "data_file": dl_manager.download(test_file),
 
70
  )
71
 
72
  def _split_generators(self, dl_manager):
 
 
73
 
74
+ test_file = rf'{self.config.data_url}test\{self.config.name}.txt'
75
+ dev_file = rf'{self.config.data_url}dev\{self.config.name}.txt'
76
+ train_file = rf'{self.config.data_url}train\{self.config.name}.txt'
77
  return [datasets.SplitGenerator(name=datasets.Split.TEST,
78
  gen_kwargs={
79
  "data_file": dl_manager.download(test_file),