fernando-peres commited on
Commit ·
f081961
1
Parent(s): 856f4cb
resolving card bugs
Browse files- py_legislation.py +11 -11
py_legislation.py
CHANGED
|
@@ -240,20 +240,20 @@ 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 |
-
|
| 248 |
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
|
| 253 |
-
if self.config.name == "unlabeled_sentences":
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
|
| 258 |
# if self.config.name == "labeled_sentences":
|
| 259 |
# description = _metadata["labeled_sentences"]["description"]
|
|
|
|
| 240 |
This method specifies the datasets.DatasetInfo object which contains
|
| 241 |
information and typings for the dataset
|
| 242 |
"""
|
| 243 |
+
features = _metadata[self.config.name]["features"]
|
| 244 |
+
description =_metadata[self.config.name]["description"]
|
| 245 |
|
| 246 |
+
# if self.config.name == "raw_text":
|
| 247 |
+
# description = _metadata["raw_text"]["description"]
|
| 248 |
|
| 249 |
+
# features = datasets.Features(
|
| 250 |
+
# _metadata["raw_text"]["features"]
|
| 251 |
+
# )
|
| 252 |
|
| 253 |
+
# if self.config.name == "unlabeled_sentences":
|
| 254 |
+
# description = _metadata["unlabeled_sentences"]["description"]
|
| 255 |
+
# features = datasets.Features(
|
| 256 |
+
# _metadata["unlabeled_sentences"]["features"])
|
| 257 |
|
| 258 |
# if self.config.name == "labeled_sentences":
|
| 259 |
# description = _metadata["labeled_sentences"]["description"]
|