ScHh0625 commited on
Commit
23535cd
1 Parent(s): ae4293e

Update semi-text-c.py

Browse files
Files changed (1) hide show
  1. semi-text-c.py +4 -4
semi-text-c.py CHANGED
@@ -57,12 +57,12 @@ class semiTextc(datasets.GeneratorBasedBuilder):
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 ['target']:
 
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 ['target']: