Update disrpt.py
Browse files
disrpt.py
CHANGED
@@ -159,6 +159,8 @@ class Dataset(datasets.GeneratorBasedBuilder):
|
|
159 |
self.files = {**self.files, **data_file}
|
160 |
|
161 |
splits_dict = {datasets.Split.TRAIN: 'train', datasets.Split.VALIDATION: 'dev', datasets.Split.TEST: 'test'}
|
|
|
|
|
162 |
split_generators = [
|
163 |
datasets.SplitGenerator(name=split, gen_kwargs={"filepath": data_file[f"{data_dir}-{key}.{type}"]})
|
164 |
for split, key in splits_dict.items()
|
|
|
159 |
self.files = {**self.files, **data_file}
|
160 |
|
161 |
splits_dict = {datasets.Split.TRAIN: 'train', datasets.Split.VALIDATION: 'dev', datasets.Split.TEST: 'test'}
|
162 |
+
|
163 |
+
print("data_file:",data_file)
|
164 |
split_generators = [
|
165 |
datasets.SplitGenerator(name=split, gen_kwargs={"filepath": data_file[f"{data_dir}-{key}.{type}"]})
|
166 |
for split, key in splits_dict.items()
|