Datasets:
Update SourceData.py
Browse files- 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_{
|
| 76 |
-
"PANELIZATION": f"{_BASE_URL}token_classification/v_{
|
| 77 |
-
"ROLES_GP": f"{_BASE_URL}token_classification/v_{
|
| 78 |
-
"ROLES_SM": f"{_BASE_URL}token_classification/v_{
|
| 79 |
-
"ROLES_MULTI": f"{_BASE_URL}token_classification/v_{
|
| 80 |
}
|
| 81 |
self.BUILDER_CONFIGS = [
|
| 82 |
-
datasets.BuilderConfig(name="NER", version=
|
| 83 |
-
datasets.BuilderConfig(name="PANELIZATION", version=
|
| 84 |
-
datasets.BuilderConfig(name="ROLES_GP", version=
|
| 85 |
-
datasets.BuilderConfig(name="ROLES_SM", version=
|
| 86 |
-
datasets.BuilderConfig(name="ROLES_MULTI", version=
|
| 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"]:
|