fernando-peres
commited on
Commit
·
5df4504
1
Parent(s):
f081961
resolving card bugs
Browse files- py_legislation.py +5 -2
py_legislation.py
CHANGED
|
@@ -240,8 +240,11 @@ class PYLegislation(datasets.GeneratorBasedBuilder):
|
|
| 240 |
This method specifies the datasets.DatasetInfo object which contains
|
| 241 |
information and typings for the dataset
|
| 242 |
"""
|
| 243 |
-
features =
|
| 244 |
-
description =
|
|
|
|
|
|
|
|
|
|
| 245 |
|
| 246 |
# if self.config.name == "raw_text":
|
| 247 |
# description = _metadata["raw_text"]["description"]
|
|
|
|
| 240 |
This method specifies the datasets.DatasetInfo object which contains
|
| 241 |
information and typings for the dataset
|
| 242 |
"""
|
| 243 |
+
features = None
|
| 244 |
+
description = None
|
| 245 |
+
if self.config.name in _metadata.keys():
|
| 246 |
+
features = _metadata[self.config.name]["features"]
|
| 247 |
+
description =_metadata[self.config.name]["description"]
|
| 248 |
|
| 249 |
# if self.config.name == "raw_text":
|
| 250 |
# description = _metadata["raw_text"]["description"]
|