fernando-peres
commited on
Commit
·
fcf80cd
1
Parent(s):
4aebd2a
resolving card bugs
Browse files- py_legislation.py +3 -4
py_legislation.py
CHANGED
|
@@ -137,8 +137,7 @@ _metadata = {
|
|
| 137 |
"source_name": datasets.Value(dtype="string"),
|
| 138 |
"text_id": datasets.Value(dtype="int64"),
|
| 139 |
"text": datasets.Value(dtype="string"),
|
| 140 |
-
"extension": datasets.ClassLabel(
|
| 141 |
-
datasets.ClassLabel(names=["docx", "pdf", "html", "txt", "doc"],)),
|
| 142 |
}
|
| 143 |
|
| 144 |
},
|
|
@@ -201,7 +200,7 @@ class PY_legislation(datasets.GeneratorBasedBuilder):
|
|
| 201 |
BUILDER_CONFIGS = [
|
| 202 |
datasets.BuilderConfig(
|
| 203 |
name="raw_text",
|
| 204 |
-
#data_dir=_metadata["urls"]["raw_text"],
|
| 205 |
version=VERSION,
|
| 206 |
# description=_metadata["raw_text"]["description"],
|
| 207 |
),
|
|
@@ -256,7 +255,7 @@ class PY_legislation(datasets.GeneratorBasedBuilder):
|
|
| 256 |
# )
|
| 257 |
|
| 258 |
return datasets.DatasetInfo(
|
| 259 |
-
builder_name=self.config.name
|
| 260 |
description=description,
|
| 261 |
features=features,
|
| 262 |
homepage=_metadata["homepage"],
|
|
|
|
| 137 |
"source_name": datasets.Value(dtype="string"),
|
| 138 |
"text_id": datasets.Value(dtype="int64"),
|
| 139 |
"text": datasets.Value(dtype="string"),
|
| 140 |
+
"extension": datasets.ClassLabel(names=["docx", "pdf", "html", "txt", "doc"],),
|
|
|
|
| 141 |
}
|
| 142 |
|
| 143 |
},
|
|
|
|
| 200 |
BUILDER_CONFIGS = [
|
| 201 |
datasets.BuilderConfig(
|
| 202 |
name="raw_text",
|
| 203 |
+
# data_dir=_metadata["urls"]["raw_text"],
|
| 204 |
version=VERSION,
|
| 205 |
# description=_metadata["raw_text"]["description"],
|
| 206 |
),
|
|
|
|
| 255 |
# )
|
| 256 |
|
| 257 |
return datasets.DatasetInfo(
|
| 258 |
+
builder_name=self.config.name,
|
| 259 |
description=description,
|
| 260 |
features=features,
|
| 261 |
homepage=_metadata["homepage"],
|