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