Datasets:
EMBO
/

Languages:
English
ArXiv:
DOI:
License:
drAbreu commited on
Commit
7285026
1 Parent(s): 49caefd

Update SourceData.py

Browse files
Files changed (1) hide show
  1. SourceData.py +11 -10
SourceData.py CHANGED
@@ -71,19 +71,20 @@ class SourceData(datasets.GeneratorBasedBuilder):
71
  DEFAULT_CONFIG_NAME = "NER"
72
 
73
  def _info(self):
 
74
  self._URLS = {
75
- "NER": f"{_BASE_URL}token_classification/v_{self.config.version}/ner/",
76
- "PANELIZATION": f"{_BASE_URL}token_classification/v_{self.config.version}/panelization/",
77
- "ROLES_GP": f"{_BASE_URL}token_classification/v_{self.config.version}/roles_gene/",
78
- "ROLES_SM": f"{_BASE_URL}token_classification/v_{self.config.version}/roles_small_mol/",
79
- "ROLES_MULTI": f"{_BASE_URL}token_classification/v_{self.config.version}/roles_multi/",
80
  }
81
  self.BUILDER_CONFIGS = [
82
- datasets.BuilderConfig(name="NER", version=self.config.version, description="Dataset for named-entity recognition."),
83
- datasets.BuilderConfig(name="PANELIZATION", version=self.config.version, description="Dataset to separate figure captions into panels."),
84
- datasets.BuilderConfig(name="ROLES_GP", version=self.config.version, description="Dataset for semantic roles of gene products."),
85
- datasets.BuilderConfig(name="ROLES_SM", version=self.config.version, description="Dataset for semantic roles of small molecules."),
86
- datasets.BuilderConfig(name="ROLES_MULTI", version=self.config.version, description="Dataset to train roles. ROLES_GP and ROLES_SM at once."),
87
  ]
88
 
89
  if self.config.name in ["NER", "default"]:
 
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/",
78
+ "ROLES_GP": f"{_BASE_URL}token_classification/v_{VERSION}/roles_gene/",
79
+ "ROLES_SM": f"{_BASE_URL}token_classification/v_{VERSION}/roles_small_mol/",
80
+ "ROLES_MULTI": f"{_BASE_URL}token_classification/v_{VERSION}/roles_multi/",
81
  }
82
  self.BUILDER_CONFIGS = [
83
+ datasets.BuilderConfig(name="NER", version=VERSION, description="Dataset for named-entity recognition."),
84
+ datasets.BuilderConfig(name="PANELIZATION", version=VERSION, description="Dataset to separate figure captions into panels."),
85
+ datasets.BuilderConfig(name="ROLES_GP", version=VERSION, description="Dataset for semantic roles of gene products."),
86
+ datasets.BuilderConfig(name="ROLES_SM", version=VERSION, description="Dataset for semantic roles of small molecules."),
87
+ datasets.BuilderConfig(name="ROLES_MULTI", version=VERSION, description="Dataset to train roles. ROLES_GP and ROLES_SM at once."),
88
  ]
89
 
90
  if self.config.name in ["NER", "default"]: