Datasets:
Update SourceData.py
Browse files67 unmodified lines68697071727374757677787980818283848586878889909167 unmodified lines_LICENSE = "CC-BY 4.0"VERSION = datasets.Version(self.config.version)_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/",}BUILDER_CONFIGS = [datasets.BuilderConfig(name="NER", version=VERSION, description="Dataset for named-entity recognition."),datasets.BuilderConfig(name="PANELIZATION", version=VERSION, description="Dataset to separate figure captions into panels."),datasets.BuilderConfig(name="ROLES_GP", version=VERSION, description="Dataset for semantic roles of gene products."),datasets.BuilderConfig(name="ROLES_SM", version=VERSION, description="Dataset for semantic roles of small molecules."),datasets.BuilderConfig(name="ROLES_MULTI", version=VERSION, description="Dataset to train roles. ROLES_GP and ROLES_SM at once."),]DEFAULT_CONFIG_NAME = "NER"def _info(self):if self.config.name == "NER":features = datasets.Features(67 unmodified lines686970717273747576777879808182838485868788899091929367 unmodified lines_LICENSE = "CC-BY 4.0"DEFAULT_CONFIG_NAME = "NER"def __init__(self):self.VERSION = datasets.Version(self.config.version)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.VERSION, description="Dataset for named-entity recognition."),datasets.BuilderConfig(name="PANELIZATION", version=self.VERSION, description="Dataset to separate figure captions into panels."),datasets.BuilderConfig(name="ROLES_GP", version=self.VERSION, description="Dataset for semantic roles of gene products."),datasets.BuilderConfig(name="ROLES_SM", version=self.VERSION, description="Dataset for semantic roles of small molecules."),datasets.BuilderConfig(name="ROLES_MULTI", version=self.VERSION, description="Dataset to train roles. ROLES_GP and ROLES_SM at once."),]def _info(self):if self.config.name == "NER":features = datasets.Features(
SourceData.py+18-16