Datasets:
Update SourceData.py
Browse files- SourceData.py +6 -7
SourceData.py
CHANGED
@@ -69,8 +69,6 @@ class SourceData(datasets.GeneratorBasedBuilder):
|
|
69 |
_LICENSE = "CC-BY 4.0"
|
70 |
|
71 |
DEFAULT_CONFIG_NAME = "NER"
|
72 |
-
|
73 |
-
VERSION = datasets.Version(self.version)
|
74 |
|
75 |
self._URLS = {
|
76 |
"NER": f"{_BASE_URL}token_classification/v_{self.config.version}/ner/",
|
@@ -80,14 +78,15 @@ class SourceData(datasets.GeneratorBasedBuilder):
|
|
80 |
"ROLES_MULTI": f"{_BASE_URL}token_classification/v_{self.config.version}/roles_multi/",
|
81 |
}
|
82 |
self.BUILDER_CONFIGS = [
|
83 |
-
datasets.BuilderConfig(name="NER", version=self.
|
84 |
-
datasets.BuilderConfig(name="PANELIZATION", version=self.
|
85 |
-
datasets.BuilderConfig(name="ROLES_GP", version=self.
|
86 |
-
datasets.BuilderConfig(name="ROLES_SM", version=self.
|
87 |
-
datasets.BuilderConfig(name="ROLES_MULTI", version=self.
|
88 |
]
|
89 |
|
90 |
def _info(self):
|
|
|
91 |
if self.config.name == "NER":
|
92 |
features = datasets.Features(
|
93 |
{
|
|
|
69 |
_LICENSE = "CC-BY 4.0"
|
70 |
|
71 |
DEFAULT_CONFIG_NAME = "NER"
|
|
|
|
|
72 |
|
73 |
self._URLS = {
|
74 |
"NER": f"{_BASE_URL}token_classification/v_{self.config.version}/ner/",
|
|
|
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(
|
92 |
{
|