ScHh0625 commited on
Commit
24de156
1 Parent(s): 4ffb109

Update semi-text-c.py

Browse files
Files changed (1) hide show
  1. semi-text-c.py +6 -6
semi-text-c.py CHANGED
@@ -56,13 +56,13 @@ class semiTextc(datasets.GeneratorBasedBuilder):
56
  )
57
  for split in ["train", "valid", "test"]
58
  ]
59
- if self.config.name == "source":
60
- return [datasets.SplitGenerator(name="source", gen_kwargs={
61
- "path_file": dl_manager.download_and_extract(self.config.data_url), "split": "source", })]
62
 
63
- if self.config.name == "target":
64
- return [datasets.SplitGenerator(name="target", gen_kwargs={
65
- "path_file": dl_manager.download_and_extract(self.config.data_url), "split": "target", })]
66
 
67
  def _generate_examples(self, path_file, split):
68
  if split in ['source']:
 
56
  )
57
  for split in ["train", "valid", "test"]
58
  ]
59
+ if self.config.name == "source":
60
+ return [datasets.SplitGenerator(name="source", gen_kwargs={
61
+ "path_file": dl_manager.download_and_extract(self.config.data_url), "split": "source", })]
62
 
63
+ if self.config.name == "target":
64
+ return [datasets.SplitGenerator(name="target", gen_kwargs={
65
+ "path_file": dl_manager.download_and_extract(self.config.data_url), "split": "target", })]
66
 
67
  def _generate_examples(self, path_file, split):
68
  if split in ['source']: