Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
n<1K
Language Creators:
found
Annotations Creators:
expert-generated
Source Datasets:
original
Tags:
License:
albertvillanova HF staff commited on
Commit
2394a2e
1 Parent(s): 41a7d29

Convert dataset to Parquet (#1)

Browse files

- Convert dataset to Parquet (4ee0c696294fae8a70cc04abdd1c8769d20e8d51)
- Delete loading script (7e22ab25a10c9cb377c5faf0b73efbd9e983e16e)
- Delete legacy dataset_infos.json (7823c68b4eab50a225f26c06c2e204a917cfb763)

README.md CHANGED
@@ -30,10 +30,15 @@ dataset_info:
30
  dtype: float32
31
  splits:
32
  - name: train
33
- num_bytes: 32783
34
  num_examples: 100
35
- download_size: 36324
36
- dataset_size: 32783
 
 
 
 
 
37
  ---
38
 
39
  # Dataset Card for BIOSSES
30
  dtype: float32
31
  splits:
32
  - name: train
33
+ num_bytes: 32775
34
  num_examples: 100
35
+ download_size: 23090
36
+ dataset_size: 32775
37
+ configs:
38
+ - config_name: default
39
+ data_files:
40
+ - split: train
41
+ path: data/train-*
42
  ---
43
 
44
  # Dataset Card for BIOSSES
biosses.py DELETED
@@ -1,99 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
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
- """BIOSSES: A Benchmark Dataset for Biomedical Sentence Similarity Estimation"""
16
-
17
-
18
- import pandas as pd
19
-
20
- import datasets
21
-
22
-
23
- _CITATION = """\
24
- @article{souganciouglu2017biosses,
25
- title={BIOSSES: a semantic sentence similarity estimation system for the biomedical domain},
26
- author={So{\\u{g}}anc{\\i}o{\\u{g}}lu, Gizem and {\\"O}zt{\\"u}rk, Hakime and {\\"O}zg{\\"u}r, Arzucan},
27
- journal={Bioinformatics},
28
- volume={33},
29
- number={14},
30
- pages={i49--i58},
31
- year={2017},
32
- publisher={Oxford University Press}
33
- }
34
- """
35
-
36
-
37
- _DESCRIPTION = """\
38
- BIOSSES is a benchmark dataset for biomedical sentence similarity estimation. The dataset comprises 100 sentence pairs, in which each sentence was selected from the TAC (Text Analysis Conference) Biomedical Summarization Track Training Dataset containing articles from the biomedical domain. The sentence pairs were evaluated by five different human experts that judged their similarity and gave scores ranging from 0 (no relation) to 4 (equivalent).
39
- """
40
-
41
-
42
- _LICENSE = """\
43
- BIOSSES is made available under the terms of The GNU Common Public License v.3.0.
44
- """
45
-
46
-
47
- _URL = "https://tabilab.cmpe.boun.edu.tr/BIOSSES/DataSet.html"
48
-
49
-
50
- _DATA_URL = "https://raw.githubusercontent.com/Markus-Zlabinger/ssts/fce78a649ab90269950aaf44ce20a36e94409392/data/biosses/all.tsv"
51
-
52
-
53
- class BiossesConfig(datasets.BuilderConfig):
54
- """BuilderConfig for BIOSSES"""
55
-
56
- def __init__(self, **kwargs):
57
- """
58
- Args:
59
- **kwargs: keyword arguments forwarded to super.
60
- """
61
- super(BiossesConfig, self).__init__(**kwargs)
62
-
63
-
64
- class Biosses(datasets.GeneratorBasedBuilder):
65
- """BIOSSES: A Benchmark Dataset for Biomedical Sentence Similarity Estimation"""
66
-
67
- def _info(self):
68
- features = datasets.Features(
69
- {
70
- "sentence1": datasets.Value("string"),
71
- "sentence2": datasets.Value("string"),
72
- "score": datasets.Value("float32"),
73
- }
74
- )
75
- return datasets.DatasetInfo(
76
- description=_DESCRIPTION,
77
- features=features,
78
- supervised_keys=None,
79
- homepage=_URL,
80
- license=_LICENSE,
81
- citation=_CITATION,
82
- )
83
-
84
- def _split_generators(self, dl_manager):
85
- """Returns SplitGenerators."""
86
-
87
- downloaded_file = dl_manager.download_and_extract(_DATA_URL)
88
- return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_file})]
89
-
90
- def _generate_examples(self, filepath):
91
- """Yields examples as (key, example) tuples."""
92
-
93
- df = pd.read_csv(filepath, sep="\t", encoding="utf-8")
94
- for idx, row in df.iterrows():
95
- yield idx, {
96
- "sentence1": row["sentence1"],
97
- "sentence2": row["sentence2"],
98
- "score": row["score"],
99
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2462db0d88a86b3964a51eb8b2b70390e4d443671be4efafe5283e368e809c7
3
+ size 23090
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"default": {"description": "BIOSSES is a benchmark dataset for biomedical sentence similarity estimation. The dataset comprises 100 sentence pairs, in which each sentence was selected from the TAC (Text Analysis Conference) Biomedical Summarization Track Training Dataset containing articles from the biomedical domain. The sentence pairs were evaluated by five different human experts that judged their similarity and gave scores ranging from 0 (no relation) to 4 (equivalent).\n", "citation": "@article{souganciouglu2017biosses,\n title={BIOSSES: a semantic sentence similarity estimation system for the biomedical domain},\n author={So{\\u{g}}anc{\\i}o{\\u{g}}lu, Gizem and {\\\"O}zt{\\\"u}rk, Hakime and {\\\"O}zg{\\\"u}r, Arzucan},\n journal={Bioinformatics},\n volume={33},\n number={14},\n pages={i49--i58},\n year={2017},\n publisher={Oxford University Press}\n}\n", "homepage": "https://tabilab.cmpe.boun.edu.tr/BIOSSES/DataSet.html", "license": "BIOSSES is made available under the terms of The GNU Common Public License v.3.0.\n", "features": {"sentence1": {"dtype": "string", "id": null, "_type": "Value"}, "sentence2": {"dtype": "string", "id": null, "_type": "Value"}, "score": {"dtype": "float32", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "biosses", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 32783, "num_examples": 100, "dataset_name": "biosses"}}, "download_checksums": {"https://raw.githubusercontent.com/Markus-Zlabinger/ssts/fce78a649ab90269950aaf44ce20a36e94409392/data/biosses/all.tsv": {"num_bytes": 36324, "checksum": "e0f7b235e4bc9a76ad4bd170bf0da2f449ec6ea677a9a4b5dcb7be6687775906"}}, "download_size": 36324, "post_processing_size": null, "dataset_size": 32783, "size_in_bytes": 69107}}