Datasets:
Update SourceData.py
Browse files- SourceData.py +3 -1
SourceData.py
CHANGED
@@ -70,8 +70,10 @@ class SourceData(datasets.GeneratorBasedBuilder):
|
|
70 |
|
71 |
DEFAULT_CONFIG_NAME = "NER"
|
72 |
|
|
|
|
|
73 |
def _info(self):
|
74 |
-
VERSION = self.config.version if self.config.version
|
75 |
self._URLS = {
|
76 |
"NER": f"{_BASE_URL}token_classification/v_{VERSION}/ner/",
|
77 |
"PANELIZATION": f"{_BASE_URL}token_classification/v_{VERSION}/panelization/",
|
|
|
70 |
|
71 |
DEFAULT_CONFIG_NAME = "NER"
|
72 |
|
73 |
+
_LATEST_VERSION = "1.0.0"
|
74 |
+
|
75 |
def _info(self):
|
76 |
+
VERSION = self.config.version if self.config.version not in ["0.0.0", "latest"] else _LATEST_VERSION
|
77 |
self._URLS = {
|
78 |
"NER": f"{_BASE_URL}token_classification/v_{VERSION}/ner/",
|
79 |
"PANELIZATION": f"{_BASE_URL}token_classification/v_{VERSION}/panelization/",
|