system HF staff commited on
Commit
8d480ac
1 Parent(s): e3cf955

Update files from the datasets library (from 1.16.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.16.0

Files changed (1) hide show
  1. iwslt2017.py +6 -6
iwslt2017.py CHANGED
@@ -130,13 +130,13 @@ class IWSLT217(datasets.GeneratorBasedBuilder):
130
  "source_files": [
131
  os.path.join(
132
  data_dir,
133
- "train.tags.{}.{}".format(self.config.pair, source),
134
  )
135
  ],
136
  "target_files": [
137
  os.path.join(
138
  data_dir,
139
- "train.tags.{}.{}".format(self.config.pair, target),
140
  )
141
  ],
142
  "split": "train",
@@ -149,14 +149,14 @@ class IWSLT217(datasets.GeneratorBasedBuilder):
149
  "source_files": [
150
  os.path.join(
151
  data_dir,
152
- "IWSLT17.TED.tst{}.{}.{}.xml".format(year, self.config.pair, source),
153
  )
154
  for year in years
155
  ],
156
  "target_files": [
157
  os.path.join(
158
  data_dir,
159
- "IWSLT17.TED.tst{}.{}.{}.xml".format(year, self.config.pair, target),
160
  )
161
  for year in years
162
  ],
@@ -170,13 +170,13 @@ class IWSLT217(datasets.GeneratorBasedBuilder):
170
  "source_files": [
171
  os.path.join(
172
  data_dir,
173
- "IWSLT17.TED.dev2010.{}.{}.xml".format(self.config.pair, source),
174
  )
175
  ],
176
  "target_files": [
177
  os.path.join(
178
  data_dir,
179
- "IWSLT17.TED.dev2010.{}.{}.xml".format(self.config.pair, target),
180
  )
181
  ],
182
  "split": "dev",
 
130
  "source_files": [
131
  os.path.join(
132
  data_dir,
133
+ f"train.tags.{self.config.pair}.{source}",
134
  )
135
  ],
136
  "target_files": [
137
  os.path.join(
138
  data_dir,
139
+ f"train.tags.{self.config.pair}.{target}",
140
  )
141
  ],
142
  "split": "train",
 
149
  "source_files": [
150
  os.path.join(
151
  data_dir,
152
+ f"IWSLT17.TED.tst{year}.{self.config.pair}.{source}.xml",
153
  )
154
  for year in years
155
  ],
156
  "target_files": [
157
  os.path.join(
158
  data_dir,
159
+ f"IWSLT17.TED.tst{year}.{self.config.pair}.{target}.xml",
160
  )
161
  for year in years
162
  ],
 
170
  "source_files": [
171
  os.path.join(
172
  data_dir,
173
+ f"IWSLT17.TED.dev2010.{self.config.pair}.{source}.xml",
174
  )
175
  ],
176
  "target_files": [
177
  os.path.join(
178
  data_dir,
179
+ f"IWSLT17.TED.dev2010.{self.config.pair}.{target}.xml",
180
  )
181
  ],
182
  "split": "dev",