Fix TypeError when loading some subsets
Browse filesFix `TypeError: _generate_examples() got an unexpected keyword argument 'tfrecord'`.
This affects subsets with the `quail_` prefix, e.g. `quail_description_context_question_text`
P3.py
CHANGED
@@ -160,7 +160,7 @@ class P3(datasets.GeneratorBasedBuilder):
|
|
160 |
datasets.SplitGenerator(
|
161 |
name=datasets.Split(special_split_name),
|
162 |
gen_kwargs={
|
163 |
-
"
|
164 |
},
|
165 |
)
|
166 |
)
|
|
|
160 |
datasets.SplitGenerator(
|
161 |
name=datasets.Split(special_split_name),
|
162 |
gen_kwargs={
|
163 |
+
"tfrecord_files": data_dir[special_split_name],
|
164 |
},
|
165 |
)
|
166 |
)
|