Upload regulatory_comments_api.py
Browse files
regulatory_comments_api.py
CHANGED
@@ -122,8 +122,9 @@ class RegulationsDataFetcher:
|
|
122 |
|
123 |
class RegCommentsAPIConfig(BuilderConfig):
|
124 |
def __init__(self, api_key=None, **kwargs):
|
125 |
-
super(RegCommentsAPIConfig, self).__init__(**kwargs)
|
126 |
self.api_key = api_key
|
|
|
|
|
127 |
|
128 |
class RegCommentsAPI(datasets.GeneratorBasedBuilder):
|
129 |
VERSION = datasets.Version("1.1.0")
|
@@ -135,6 +136,7 @@ class RegCommentsAPI(datasets.GeneratorBasedBuilder):
|
|
135 |
description="Dataset of regulatory comments",
|
136 |
)
|
137 |
]
|
|
|
138 |
|
139 |
# Method to define the structure of the dataset
|
140 |
def _info(self):
|
|
|
122 |
|
123 |
class RegCommentsAPIConfig(BuilderConfig):
|
124 |
def __init__(self, api_key=None, **kwargs):
|
|
|
125 |
self.api_key = api_key
|
126 |
+
super(RegCommentsAPIConfig, self).__init__(**kwargs)
|
127 |
+
|
128 |
|
129 |
class RegCommentsAPI(datasets.GeneratorBasedBuilder):
|
130 |
VERSION = datasets.Version("1.1.0")
|
|
|
136 |
description="Dataset of regulatory comments",
|
137 |
)
|
138 |
]
|
139 |
+
BUILDER_CONFIG_CLASS = RegCommentsAPIConfig
|
140 |
|
141 |
# Method to define the structure of the dataset
|
142 |
def _info(self):
|