lovodkin93
commited on
Commit
•
731e223
1
Parent(s):
752fa0c
updated the script
Browse files
Controlled-Text-Reduction-dataset.py
CHANGED
@@ -173,6 +173,20 @@ class ControlledTextReduction(datasets.GeneratorBasedBuilder):
|
|
173 |
"filepath": corpora["train"]
|
174 |
},
|
175 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
]
|
177 |
|
178 |
else:
|
|
|
173 |
"filepath": corpora["train"]
|
174 |
},
|
175 |
),
|
176 |
+
datasets.SplitGenerator(
|
177 |
+
name=datasets.Split.VALIDATION,
|
178 |
+
# These kwargs will be passed to _generate_examples
|
179 |
+
gen_kwargs={
|
180 |
+
"filepath": corpora["dev"]
|
181 |
+
},
|
182 |
+
),
|
183 |
+
datasets.SplitGenerator(
|
184 |
+
name=datasets.Split.TEST,
|
185 |
+
# These kwargs will be passed to _generate_examples
|
186 |
+
gen_kwargs={
|
187 |
+
"filepath": corpora["test"]
|
188 |
+
},
|
189 |
+
),
|
190 |
]
|
191 |
|
192 |
else:
|