Datasets:
EMBO
/

Languages:
English
ArXiv:
DOI:
License:
drAbreu commited on
Commit
06354d4
1 Parent(s): 0a526df

Update SourceData.py

Browse files
Files changed (1) hide show
  1. 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 != "0.0.0" else "1.0.0"
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/",