Datasets:
Update SourceData.py
Browse files- SourceData.py +5 -5
SourceData.py
CHANGED
|
@@ -171,23 +171,23 @@ class SourceData(datasets.GeneratorBasedBuilder):
|
|
| 171 |
|
| 172 |
if self.config.name == "NER":
|
| 173 |
url = self._URLS["NER"]
|
| 174 |
-
data_dir = dl_manager.
|
| 175 |
data_dir += "/"
|
| 176 |
elif self.config.name == "PANELIZATION":
|
| 177 |
url = self._URLS["PANELIZATION"]
|
| 178 |
-
data_dir = dl_manager.
|
| 179 |
data_dir += "/"
|
| 180 |
elif self.config.name == "ROLES_GP":
|
| 181 |
url = self._URLS["ROLES_GP"]
|
| 182 |
-
data_dir = dl_manager.
|
| 183 |
data_dir += "/"
|
| 184 |
elif self.config.name == "ROLES_SM":
|
| 185 |
url = self._URLS["ROLES_SM"]
|
| 186 |
-
data_dir = dl_manager.
|
| 187 |
data_dir += "/"
|
| 188 |
elif self.config.name == "ROLES_MULTI":
|
| 189 |
url = self._URLS["ROLES_MULTI"]
|
| 190 |
-
data_dir = dl_manager.
|
| 191 |
data_dir += "/"
|
| 192 |
else:
|
| 193 |
raise ValueError(f"unkonwn config name: {self.config.name}")
|
|
|
|
| 171 |
|
| 172 |
if self.config.name == "NER":
|
| 173 |
url = self._URLS["NER"]
|
| 174 |
+
data_dir = dl_manager.download(url)
|
| 175 |
data_dir += "/"
|
| 176 |
elif self.config.name == "PANELIZATION":
|
| 177 |
url = self._URLS["PANELIZATION"]
|
| 178 |
+
data_dir = dl_manager.download(url)
|
| 179 |
data_dir += "/"
|
| 180 |
elif self.config.name == "ROLES_GP":
|
| 181 |
url = self._URLS["ROLES_GP"]
|
| 182 |
+
data_dir = dl_manager.download(url)
|
| 183 |
data_dir += "/"
|
| 184 |
elif self.config.name == "ROLES_SM":
|
| 185 |
url = self._URLS["ROLES_SM"]
|
| 186 |
+
data_dir = dl_manager.download(url)
|
| 187 |
data_dir += "/"
|
| 188 |
elif self.config.name == "ROLES_MULTI":
|
| 189 |
url = self._URLS["ROLES_MULTI"]
|
| 190 |
+
data_dir = dl_manager.download(url)
|
| 191 |
data_dir += "/"
|
| 192 |
else:
|
| 193 |
raise ValueError(f"unkonwn config name: {self.config.name}")
|