system HF staff commited on
Commit
f6e001e
1 Parent(s): eab50b5

Update files from the datasets library (from 1.2.0)

Browse files

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

Files changed (1) hide show
  1. wiki40b.py +3 -4
wiki40b.py CHANGED
@@ -18,7 +18,6 @@
18
  from __future__ import absolute_import, division, print_function
19
 
20
  import logging
21
- import os
22
 
23
  import datasets
24
 
@@ -144,15 +143,15 @@ class Wiki40b(datasets.BeamBasedBuilder):
144
  return [
145
  datasets.SplitGenerator(
146
  name=datasets.Split.TRAIN,
147
- gen_kwargs={"filepaths": os.path.join(_DATA_DIRECTORY, "train", "{}_examples-*".format(lang))},
148
  ),
149
  datasets.SplitGenerator(
150
  name=datasets.Split.VALIDATION,
151
- gen_kwargs={"filepaths": os.path.join(_DATA_DIRECTORY, "dev", "{}_examples-*".format(lang))},
152
  ),
153
  datasets.SplitGenerator(
154
  name=datasets.Split.TEST,
155
- gen_kwargs={"filepaths": os.path.join(_DATA_DIRECTORY, "test", "{}_examples-*".format(lang))},
156
  ),
157
  ]
158
 
 
18
  from __future__ import absolute_import, division, print_function
19
 
20
  import logging
 
21
 
22
  import datasets
23
 
 
143
  return [
144
  datasets.SplitGenerator(
145
  name=datasets.Split.TRAIN,
146
+ gen_kwargs={"filepaths": f"{_DATA_DIRECTORY}/train/{lang}_examples-*"},
147
  ),
148
  datasets.SplitGenerator(
149
  name=datasets.Split.VALIDATION,
150
+ gen_kwargs={"filepaths": f"{_DATA_DIRECTORY}/dev/{lang}_examples-*"},
151
  ),
152
  datasets.SplitGenerator(
153
  name=datasets.Split.TEST,
154
+ gen_kwargs={"filepaths": f"{_DATA_DIRECTORY}/test/{lang}_examples-*"},
155
  ),
156
  ]
157