Datasets:
Update SourceData.py
Browse files69 unmodified lines70717273747576777879808182838485868773747576777879808182838485868788899069 unmodified lines
DEFAULT_CONFIG_NAME = "NER"
self._URLS = { "NER": f"{_BASE_URL}token_classification/v_{self.config.version}/ner/", "PANELIZATION": f"{_BASE_URL}token_classification/v_{self.config.version}/panelization/", "ROLES_GP": f"{_BASE_URL}token_classification/v_{self.config.version}/roles_gene/", "ROLES_SM": f"{_BASE_URL}token_classification/v_{self.config.version}/roles_small_mol/", "ROLES_MULTI": f"{_BASE_URL}token_classification/v_{self.config.version}/roles_multi/", } self.BUILDER_CONFIGS = [ datasets.BuilderConfig(name="NER", version=self.config.version, description="Dataset for named-entity recognition."), datasets.BuilderConfig(name="PANELIZATION", version=self.config.version, description="Dataset to separate figure captions into panels."), datasets.BuilderConfig(name="ROLES_GP", version=self.config.version, description="Dataset for semantic roles of gene products."), datasets.BuilderConfig(name="ROLES_SM", version=self.config.version, description="Dataset for semantic roles of small molecules."), datasets.BuilderConfig(name="ROLES_MULTI", version=self.config.version, description="Dataset to train roles. ROLES_GP and ROLES_SM at once."), ]
def _info(self): self._URLS = { "NER": f"{_BASE_URL}token_classification/v_{self.config.version}/ner/", "PANELIZATION": f"{_BASE_URL}token_classification/v_{self.config.version}/panelization/", "ROLES_GP": f"{_BASE_URL}token_classification/v_{self.config.version}/roles_gene/", "ROLES_SM": f"{_BASE_URL}token_classification/v_{self.config.version}/roles_small_mol/", "ROLES_MULTI": f"{_BASE_URL}token_classification/v_{self.config.version}/roles_multi/", } self.BUILDER_CONFIGS = [ datasets.BuilderConfig(name="NER", version=self.config.version, description="Dataset for named-entity recognition."), datasets.BuilderConfig(name="PANELIZATION", version=self.config.version, description="Dataset to separate figure captions into panels."), datasets.BuilderConfig(name="ROLES_GP", version=self.config.version, description="Dataset for semantic roles of gene products."), datasets.BuilderConfig(name="ROLES_SM", version=self.config.version, description="Dataset for semantic roles of small molecules."), datasets.BuilderConfig(name="ROLES_MULTI", version=self.config.version, description="Dataset to train roles. ROLES_GP and ROLES_SM at once."), ] if self.config.name == "NER": features = datasets.Features(SourceData.py+14-15