fernando-peres
commited on
Commit
·
cdd1980
1
Parent(s):
19bd8f0
adjustments
Browse files- py_legislation.py +6 -1
py_legislation.py
CHANGED
|
@@ -228,7 +228,7 @@ class PYLegislation(datasets.GeneratorBasedBuilder):
|
|
| 228 |
# It's not mandatory to have a default configuration. Just use one if it make sense.
|
| 229 |
# DEFAULT_CONFIG_NAME = "raw_text"
|
| 230 |
|
| 231 |
-
# [i]
|
| 232 |
def _info(self):
|
| 233 |
"""
|
| 234 |
This method specifies the datasets.DatasetInfo object which contains
|
|
@@ -242,6 +242,11 @@ class PYLegislation(datasets.GeneratorBasedBuilder):
|
|
| 242 |
_CONFIGS[self.config.name]["features"])
|
| 243 |
|
| 244 |
description = _CONFIGS[self.config.name]["description"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
|
| 246 |
# if self.config.name == "raw_text":
|
| 247 |
# description = _metadata["raw_text"]["description"]
|
|
|
|
| 228 |
# It's not mandatory to have a default configuration. Just use one if it make sense.
|
| 229 |
# DEFAULT_CONFIG_NAME = "raw_text"
|
| 230 |
|
| 231 |
+
# [i] Dataset Information:
|
| 232 |
def _info(self):
|
| 233 |
"""
|
| 234 |
This method specifies the datasets.DatasetInfo object which contains
|
|
|
|
| 242 |
_CONFIGS[self.config.name]["features"])
|
| 243 |
|
| 244 |
description = _CONFIGS[self.config.name]["description"]
|
| 245 |
+
else:
|
| 246 |
+
features = datasets.Features(
|
| 247 |
+
_CONFIGS["raw_text"]["features"])
|
| 248 |
+
|
| 249 |
+
description = _CONFIGS["raw_text"]["description"]
|
| 250 |
|
| 251 |
# if self.config.name == "raw_text":
|
| 252 |
# description = _metadata["raw_text"]["description"]
|