fernando-peres
commited on
Commit
·
64fc934
1
Parent(s):
0d1b070
readme update
Browse files- README.md +3 -3
- py_legislation.py +2 -5
README.md
CHANGED
|
@@ -13,15 +13,15 @@ configs:
|
|
| 13 |
- config_name: default
|
| 14 |
data_files:
|
| 15 |
- split: train
|
| 16 |
-
path: "/raw_text/train
|
| 17 |
- config_name: raw_text
|
| 18 |
data_files:
|
| 19 |
- split: train
|
| 20 |
-
path: "/raw_text/train
|
| 21 |
- config_name: unlabeled_sentences
|
| 22 |
data_files:
|
| 23 |
- split: train
|
| 24 |
-
path: "/unlabeled_sentences/train
|
| 25 |
|
| 26 |
---
|
| 27 |
|
|
|
|
| 13 |
- config_name: default
|
| 14 |
data_files:
|
| 15 |
- split: train
|
| 16 |
+
path: "/raw_text/train.parquet"
|
| 17 |
- config_name: raw_text
|
| 18 |
data_files:
|
| 19 |
- split: train
|
| 20 |
+
path: "/raw_text/train.parquet"
|
| 21 |
- config_name: unlabeled_sentences
|
| 22 |
data_files:
|
| 23 |
- split: train
|
| 24 |
+
path: "/unlabeled_sentences/train.parquet"
|
| 25 |
|
| 26 |
---
|
| 27 |
|
py_legislation.py
CHANGED
|
@@ -226,7 +226,7 @@ class PYLegislation(datasets.GeneratorBasedBuilder):
|
|
| 226 |
]
|
| 227 |
|
| 228 |
# It's not mandatory to have a default configuration. Just use one if it make sense.
|
| 229 |
-
|
| 230 |
|
| 231 |
# [i] Dataset Information:
|
| 232 |
def _info(self):
|
|
@@ -261,13 +261,10 @@ class PYLegislation(datasets.GeneratorBasedBuilder):
|
|
| 261 |
urls = _URLS[self.config.name]
|
| 262 |
# data_dir = dl_manager.download_and_extract(urls)
|
| 263 |
urls = dl_manager.download_and_extract(urls)
|
| 264 |
-
|
| 265 |
return [
|
| 266 |
datasets.SplitGenerator(
|
| 267 |
name=datasets.Split.TRAIN,
|
| 268 |
-
# These kwargs will be passed to _generate_examples
|
| 269 |
-
# gen_kwargs={"filepath": os.path.join(data_dir)},
|
| 270 |
-
# gen_kwargs={"filepath": os.path.join(urls)},
|
| 271 |
gen_kwargs={"filepath": urls},
|
| 272 |
),
|
| 273 |
]
|
|
|
|
| 226 |
]
|
| 227 |
|
| 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):
|
|
|
|
| 261 |
urls = _URLS[self.config.name]
|
| 262 |
# data_dir = dl_manager.download_and_extract(urls)
|
| 263 |
urls = dl_manager.download_and_extract(urls)
|
| 264 |
+
|
| 265 |
return [
|
| 266 |
datasets.SplitGenerator(
|
| 267 |
name=datasets.Split.TRAIN,
|
|
|
|
|
|
|
|
|
|
| 268 |
gen_kwargs={"filepath": urls},
|
| 269 |
),
|
| 270 |
]
|