Fixing path reading
Browse files- regulatory_comments.py +2 -4
regulatory_comments.py
CHANGED
@@ -35,9 +35,7 @@ _HOMEPAGE = "https://www.regulations.gov/"
|
|
35 |
# TODO: Add link to the official dataset URLs here
|
36 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
37 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
38 |
-
_URLS = {"url": "https://huggingface.co/datasets/ro-h/regulatory_comments/raw/main/docket_comments.json"
|
39 |
-
|
40 |
-
}
|
41 |
|
42 |
|
43 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
@@ -98,7 +96,7 @@ class RegComments(datasets.GeneratorBasedBuilder):
|
|
98 |
datasets.SplitGenerator(
|
99 |
name=datasets.Split.TRAIN,
|
100 |
gen_kwargs={
|
101 |
-
"filepath":
|
102 |
},
|
103 |
),
|
104 |
]
|
|
|
35 |
# TODO: Add link to the official dataset URLs here
|
36 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
37 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
38 |
+
_URLS = {"url": "https://huggingface.co/datasets/ro-h/regulatory_comments/raw/main/docket_comments.json"}
|
|
|
|
|
39 |
|
40 |
|
41 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
|
|
96 |
datasets.SplitGenerator(
|
97 |
name=datasets.Split.TRAIN,
|
98 |
gen_kwargs={
|
99 |
+
"filepath": data_dir,
|
100 |
},
|
101 |
),
|
102 |
]
|