Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
expert-generated
Annotations Creators:
expert-generated
Source Datasets:
original
Tags:
License:
system HF staff commited on
Commit
1ef6919
0 Parent(s):

Update files from the datasets library (from 1.2.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.2.0

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - expert-generated
6
+ languages:
7
+ - en
8
+ licenses:
9
+ - unknown
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 1K<n<10K
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - structure-prediction
18
+ task_ids:
19
+ - named-entity-recognition
20
+ ---
21
+
22
+ # Dataset Card for bc2gm_corpus
23
+
24
+ ## Table of Contents
25
+ - [Dataset Card for [Dataset Name]](#dataset-card-for-dataset-name)
26
+ - [Table of Contents](#table-of-contents)
27
+ - [Dataset Description](#dataset-description)
28
+ - [Dataset Summary](#dataset-summary)
29
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
30
+ - [Languages](#languages)
31
+ - [Dataset Structure](#dataset-structure)
32
+ - [Data Instances](#data-instances)
33
+ - [Data Fields](#data-fields)
34
+ - [Data Splits](#data-splits)
35
+ - [Dataset Creation](#dataset-creation)
36
+ - [Curation Rationale](#curation-rationale)
37
+ - [Source Data](#source-data)
38
+ - [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
39
+ - [Who are the source language producers?](#who-are-the-source-language-producers)
40
+ - [Annotations](#annotations)
41
+ - [Annotation process](#annotation-process)
42
+ - [Who are the annotators?](#who-are-the-annotators)
43
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
44
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
45
+ - [Social Impact of Dataset](#social-impact-of-dataset)
46
+ - [Discussion of Biases](#discussion-of-biases)
47
+ - [Other Known Limitations](#other-known-limitations)
48
+ - [Additional Information](#additional-information)
49
+ - [Dataset Curators](#dataset-curators)
50
+ - [Licensing Information](#licensing-information)
51
+ - [Citation Information](#citation-information)
52
+
53
+ ## Dataset Description
54
+
55
+ - **Homepage:** [Github](https://github.com/spyysalo/bc2gm-corpus/)
56
+ - **Repository:** [Github](https://github.com/spyysalo/bc2gm-corpus/)
57
+ - **Paper:** [NCBI](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2559986/)
58
+ - **Leaderboard:**
59
+ - **Point of Contact:**
60
+
61
+ ### Dataset Summary
62
+
63
+ [More Information Needed]
64
+
65
+ ### Supported Tasks and Leaderboards
66
+
67
+ [More Information Needed]
68
+
69
+ ### Languages
70
+
71
+ [More Information Needed]
72
+
73
+ ## Dataset Structure
74
+
75
+ ### Data Instances
76
+
77
+ [More Information Needed]
78
+
79
+ ### Data Fields
80
+
81
+ - `id`: Sentence identifier.
82
+ - `tokens`: Array of tokens composing a sentence.
83
+ - `ner_tags`: Array of tags, where `0` indicates no disease mentioned, `1` signals the first token of a disease and `2` the subsequent disease tokens.
84
+
85
+ ### Data Splits
86
+
87
+ [More Information Needed]
88
+
89
+ ## Dataset Creation
90
+
91
+ ### Curation Rationale
92
+
93
+ [More Information Needed]
94
+
95
+ ### Source Data
96
+
97
+ #### Initial Data Collection and Normalization
98
+
99
+ [More Information Needed]
100
+
101
+ #### Who are the source language producers?
102
+
103
+ [More Information Needed]
104
+
105
+ ### Annotations
106
+
107
+ #### Annotation process
108
+
109
+ [More Information Needed]
110
+
111
+ #### Who are the annotators?
112
+
113
+ [More Information Needed]
114
+
115
+ ### Personal and Sensitive Information
116
+
117
+ [More Information Needed]
118
+
119
+ ## Considerations for Using the Data
120
+
121
+ ### Social Impact of Dataset
122
+
123
+ [More Information Needed]
124
+
125
+ ### Discussion of Biases
126
+
127
+ [More Information Needed]
128
+
129
+ ### Other Known Limitations
130
+
131
+ [More Information Needed]
132
+
133
+ ## Additional Information
134
+
135
+ ### Dataset Curators
136
+
137
+ [More Information Needed]
138
+
139
+ ### Licensing Information
140
+
141
+ [More Information Needed]
142
+
143
+ ### Citation Information
144
+
145
+ [More Information Needed]
bc2gm_corpus.py ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2020 HuggingFace Datasets Authors.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ # Lint as: python3
17
+ """BioCreative II gene mention recognition Corpus"""
18
+
19
+ import logging
20
+
21
+ import datasets
22
+
23
+
24
+ _CITATION = """\
25
+ @article{smith2008overview,
26
+ title={Overview of BioCreative II gene mention recognition},
27
+ author={Smith, Larry and Tanabe, Lorraine K and nee Ando, Rie Johnson and Kuo, Cheng-Ju and Chung, I-Fang and Hsu, Chun-Nan and Lin, Yu-Shi and Klinger, Roman and Friedrich, Christoph M and Ganchev, Kuzman and others},
28
+ journal={Genome biology},
29
+ volume={9},
30
+ number={S2},
31
+ pages={S2},
32
+ year={2008},
33
+ publisher={Springer}
34
+ }
35
+ """
36
+
37
+ _DESCRIPTION = """\
38
+ Nineteen teams presented results for the Gene Mention Task at the BioCreative II Workshop.
39
+ In this task participants designed systems to identify substrings in sentences corresponding to gene name mentions.
40
+ A variety of different methods were used and the results varied with a highest achieved F1 score of 0.8721.
41
+ Here we present brief descriptions of all the methods used and a statistical analysis of the results.
42
+ We also demonstrate that, by combining the results from all submissions, an F score of 0.9066 is feasible,
43
+ and furthermore that the best result makes use of the lowest scoring submissions.
44
+
45
+ For more details, see: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2559986/
46
+
47
+ The original dataset can be downloaded from: https://biocreative.bioinformatics.udel.edu/resources/corpora/biocreative-ii-corpus/
48
+ This dataset has been converted to CoNLL format for NER using the following tool: https://github.com/spyysalo/standoff2conll
49
+ """
50
+
51
+ _HOMEPAGE = "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2559986/"
52
+ _URL = "https://github.com/spyysalo/bc2gm-corpus/raw/master/conll/"
53
+ _TRAINING_FILE = "train.tsv"
54
+ _DEV_FILE = "devel.tsv"
55
+ _TEST_FILE = "test.tsv"
56
+
57
+
58
+ class Bc2gmCorpusConfig(datasets.BuilderConfig):
59
+ """BuilderConfig for Bc2gmCorpus"""
60
+
61
+ def __init__(self, **kwargs):
62
+ """BuilderConfig for Bc2gmCorpus.
63
+ Args:
64
+ **kwargs: keyword arguments forwarded to super.
65
+ """
66
+ super(Bc2gmCorpusConfig, self).__init__(**kwargs)
67
+
68
+
69
+ class Bc2gmCorpus(datasets.GeneratorBasedBuilder):
70
+ """Bc2gmCorpus dataset."""
71
+
72
+ BUILDER_CONFIGS = [
73
+ Bc2gmCorpusConfig(name="bc2gm_corpus", version=datasets.Version("1.0.0"), description="bc2gm corpus"),
74
+ ]
75
+
76
+ def _info(self):
77
+ return datasets.DatasetInfo(
78
+ description=_DESCRIPTION,
79
+ features=datasets.Features(
80
+ {
81
+ "id": datasets.Value("string"),
82
+ "tokens": datasets.Sequence(datasets.Value("string")),
83
+ "ner_tags": datasets.Sequence(
84
+ datasets.features.ClassLabel(
85
+ names=[
86
+ "O",
87
+ "B-GENE",
88
+ "I-GENE",
89
+ ]
90
+ )
91
+ ),
92
+ }
93
+ ),
94
+ supervised_keys=None,
95
+ homepage=_HOMEPAGE,
96
+ citation=_CITATION,
97
+ )
98
+
99
+ def _split_generators(self, dl_manager):
100
+ """Returns SplitGenerators."""
101
+ urls_to_download = {
102
+ "train": f"{_URL}{_TRAINING_FILE}",
103
+ "dev": f"{_URL}{_DEV_FILE}",
104
+ "test": f"{_URL}{_TEST_FILE}",
105
+ }
106
+ downloaded_files = dl_manager.download_and_extract(urls_to_download)
107
+
108
+ return [
109
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
110
+ datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
111
+ datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
112
+ ]
113
+
114
+ def _generate_examples(self, filepath):
115
+ logging.info("⏳ Generating examples from = %s", filepath)
116
+ with open(filepath, encoding="utf-8") as f:
117
+ guid = 0
118
+ tokens = []
119
+ ner_tags = []
120
+ for line in f:
121
+ if line.startswith("-DOCSTART-") or line == "" or line == "\n":
122
+ if tokens:
123
+ yield guid, {
124
+ "id": str(guid),
125
+ "tokens": tokens,
126
+ "ner_tags": ner_tags,
127
+ }
128
+ guid += 1
129
+ tokens = []
130
+ ner_tags = []
131
+ else:
132
+ # tokens are tab separated
133
+ splits = line.split("\t")
134
+ tokens.append(splits[0])
135
+ ner_tags.append(splits[1].rstrip())
136
+ # last example
137
+ yield guid, {
138
+ "id": str(guid),
139
+ "tokens": tokens,
140
+ "ner_tags": ner_tags,
141
+ }
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bc2gm_corpus": {"description": "Nineteen teams presented results for the Gene Mention Task at the BioCreative II Workshop. \nIn this task participants designed systems to identify substrings in sentences corresponding to gene name mentions. \nA variety of different methods were used and the results varied with a highest achieved F1 score of 0.8721. \nHere we present brief descriptions of all the methods used and a statistical analysis of the results. \nWe also demonstrate that, by combining the results from all submissions, an F score of 0.9066 is feasible, \nand furthermore that the best result makes use of the lowest scoring submissions.\n\nFor more details, see: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2559986/\n\nThe original dataset can be downloaded from: https://biocreative.bioinformatics.udel.edu/resources/corpora/biocreative-ii-corpus/\nThis dataset has been converted to CoNLL format for NER using the following tool: https://github.com/spyysalo/standoff2conll\n", "citation": "@article{smith2008overview,\n title={Overview of BioCreative II gene mention recognition},\n author={Smith, Larry and Tanabe, Lorraine K and nee Ando, Rie Johnson and Kuo, Cheng-Ju and Chung, I-Fang and Hsu, Chun-Nan and Lin, Yu-Shi and Klinger, Roman and Friedrich, Christoph M and Ganchev, Kuzman and others},\n journal={Genome biology},\n volume={9},\n number={S2},\n pages={S2},\n year={2008},\n publisher={Springer}\n}\n", "homepage": "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2559986/", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 3, "names": ["O", "B-GENE", "I-GENE"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "bc2gm_corpus", "config_name": "bc2gm_corpus", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 6095172, "num_examples": 12501, "dataset_name": "bc2gm_corpus"}, "validation": {"name": "validation", "num_bytes": 1215951, "num_examples": 2501, "dataset_name": "bc2gm_corpus"}, "test": {"name": "test", "num_bytes": 2454621, "num_examples": 5001, "dataset_name": "bc2gm_corpus"}}, "download_checksums": {"https://github.com/spyysalo/bc2gm-corpus/raw/master/conll/train.tsv": {"num_bytes": 2894093, "checksum": "07f696560252dc5a3d47a5cea1ce36b7434865131b5bc4b3a6d1fb02a382ce10"}, "https://github.com/spyysalo/bc2gm-corpus/raw/master/conll/devel.tsv": {"num_bytes": 577641, "checksum": "639fe423c00beeb33e83ef71e90af765c6d9cde61f52df0fbbb9d624302f5437"}, "https://github.com/spyysalo/bc2gm-corpus/raw/master/conll/test.tsv": {"num_bytes": 1165019, "checksum": "ac7745e40d97ffdf603aae661da37fa6065a7e2f9067ea1f47bfae3e5bf5d583"}}, "download_size": 4636753, "post_processing_size": null, "dataset_size": 9765744, "size_in_bytes": 14402497}}
dummy/bc2gm_corpus/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a340e5bddfbfe388349b1bb4ab69d97f81211880949046cb3bdfb00d08482b6
3
+ size 600