system HF staff commited on
Commit
24959bd
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,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - other
6
+ languages:
7
+ - pl
8
+ licenses:
9
+ - cc-by-nc-sa-4-0
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 10K<n<100K
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - other
18
+ task_ids:
19
+ - other-other-sentences entailment and relatedness
20
+ ---
21
+
22
+ # Dataset Card for [Dataset Name]
23
+
24
+ ## Table of Contents
25
+ - [Dataset Description](#dataset-description)
26
+ - [Dataset Summary](#dataset-summary)
27
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
28
+ - [Languages](#languages)
29
+ - [Dataset Structure](#dataset-structure)
30
+ - [Data Instances](#data-instances)
31
+ - [Data Fields](#data-instances)
32
+ - [Data Splits](#data-instances)
33
+ - [Dataset Creation](#dataset-creation)
34
+ - [Curation Rationale](#curation-rationale)
35
+ - [Source Data](#source-data)
36
+ - [Annotations](#annotations)
37
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
38
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
39
+ - [Social Impact of Dataset](#social-impact-of-dataset)
40
+ - [Discussion of Biases](#discussion-of-biases)
41
+ - [Other Known Limitations](#other-known-limitations)
42
+ - [Additional Information](#additional-information)
43
+ - [Dataset Curators](#dataset-curators)
44
+ - [Licensing Information](#licensing-information)
45
+ - [Citation Information](#citation-information)
46
+
47
+ ## Dataset Description
48
+
49
+ - **Homepage:**
50
+ http://zil.ipipan.waw.pl/Scwad/CDSCorpus
51
+ - **Repository:**
52
+ - **Paper:**
53
+ @inproceedings{wroblewska2017polish,
54
+ title={Polish evaluation dataset for compositional distributional semantics models},
55
+ author={Wr{\'o}blewska, Alina and Krasnowska-Kiera{\'s}, Katarzyna},
56
+ booktitle={Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
57
+ pages={784--792},
58
+ year={2017}
59
+ }
60
+ - **Leaderboard:**
61
+ https://klejbenchmark.com/leaderboard/
62
+ - **Point of Contact:**
63
+ alina@ipipan.waw.pl
64
+
65
+ ### Dataset Summary
66
+
67
+ Polish CDSCorpus consists of 10K Polish sentence pairs which are human-annotated for semantic relatedness and entailment. The dataset may be used for the evaluation of compositional distributional semantics models of Polish. The dataset was presented at ACL 2017. Please refer to the Wróblewska and Krasnowska-Kieraś (2017) for a detailed description of the resource.
68
+
69
+ ### Supported Tasks and Leaderboards
70
+
71
+ [More Information Needed]
72
+
73
+ ### Languages
74
+
75
+ Polish
76
+
77
+ ## Dataset Structure
78
+
79
+ ### Data Instances
80
+
81
+ [More Information Needed]
82
+
83
+ ### Data Fields
84
+
85
+ - pair_ID: id of sentences pairs
86
+ - sentence_A: first sentence
87
+ - sentence_B: second sentence
88
+
89
+ for cdsc-e domain:
90
+ - entailment_judgment: either 'NEUTRAL', 'CONTRADICTION' or 'ENTAILMENT'
91
+
92
+ for cdsc-r domain:
93
+ - relatedness_score: float representing a reletedness
94
+
95
+
96
+ ### Data Splits
97
+
98
+ Data is splitted in train/dev/test split.
99
+
100
+ ## Dataset Creation
101
+
102
+ ### Curation Rationale
103
+
104
+ [More Information Needed]
105
+
106
+ ### Source Data
107
+
108
+ #### Initial Data Collection and Normalization
109
+
110
+ [More Information Needed]
111
+
112
+ #### Who are the source language producers?
113
+
114
+ [More Information Needed]
115
+
116
+ ### Annotations
117
+
118
+ #### Annotation process
119
+
120
+ [More Information Needed]
121
+
122
+ #### Who are the annotators?
123
+
124
+ [More Information Needed]
125
+
126
+ ### Personal and Sensitive Information
127
+
128
+ [More Information Needed]
129
+
130
+ ## Considerations for Using the Data
131
+
132
+ ### Social Impact of Dataset
133
+
134
+ [More Information Needed]
135
+
136
+ ### Discussion of Biases
137
+
138
+ [More Information Needed]
139
+
140
+ ### Other Known Limitations
141
+
142
+ [More Information Needed]
143
+
144
+ ## Additional Information
145
+
146
+ ### Dataset Curators
147
+
148
+ [More Information Needed]
149
+
150
+ ### Licensing Information
151
+
152
+ CC BY-NC-SA 4.0
153
+
154
+ ### Citation Information
155
+
156
+ [More Information Needed]
cdsc.py ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """cdsc-e & cdsc-r"""
16
+
17
+ from __future__ import absolute_import, division, print_function
18
+
19
+ import csv
20
+ import os
21
+
22
+ import datasets
23
+
24
+
25
+ _CITATION = """\
26
+ @inproceedings{wroblewska2017polish,
27
+ title={Polish evaluation dataset for compositional distributional semantics models},
28
+ author={Wr{\'o}blewska, Alina and Krasnowska-Kiera{\'s}, Katarzyna},
29
+ booktitle={Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
30
+ pages={784--792},
31
+ year={2017}
32
+ }
33
+ """
34
+
35
+ _DESCRIPTION = """\
36
+ Polish CDSCorpus consists of 10K Polish sentence pairs which are human-annotated for semantic relatedness and entailment. The dataset may be used for the evaluation of compositional distributional semantics models of Polish. The dataset was presented at ACL 2017. Please refer to the Wróblewska and Krasnowska-Kieraś (2017) for a detailed description of the resource.
37
+ """
38
+
39
+ _HOMEPAGE = "http://zil.ipipan.waw.pl/Scwad/CDSCorpus"
40
+
41
+ _LICENSE = "CC BY-NC-SA 4.0"
42
+
43
+ _URLs = {
44
+ "cdsc-e": "https://klejbenchmark.com/static/data/klej_cdsc-e.zip",
45
+ "cdsc-r": "https://klejbenchmark.com/static/data/klej_cdsc-r.zip",
46
+ }
47
+
48
+
49
+ class Cdsc(datasets.GeneratorBasedBuilder):
50
+ """CDSCorpus"""
51
+
52
+ VERSION = datasets.Version("1.1.0")
53
+
54
+ BUILDER_CONFIGS = [
55
+ datasets.BuilderConfig(
56
+ name="cdsc-e",
57
+ version=VERSION,
58
+ description="Polish CDSCorpus consists of 10K Polish sentence pairs which are human-annotated for semantic entailment.",
59
+ ),
60
+ datasets.BuilderConfig(
61
+ name="cdsc-r",
62
+ version=VERSION,
63
+ description="Polish CDSCorpus consists of 10K Polish sentence pairs which are human-annotated for semantic relatedness.",
64
+ ),
65
+ ]
66
+
67
+ def _info(self):
68
+ if self.config.name == "cdsc-e":
69
+ features = datasets.Features(
70
+ {
71
+ "pair_ID": datasets.Value("int32"),
72
+ "sentence_A": datasets.Value("string"),
73
+ "sentence_B": datasets.Value("string"),
74
+ "entailment_judgment": datasets.ClassLabel(
75
+ names=[
76
+ "NEUTRAL",
77
+ "CONTRADICTION",
78
+ "ENTAILMENT",
79
+ ]
80
+ ),
81
+ }
82
+ )
83
+ elif self.config.name == "cdsc-r":
84
+ features = datasets.Features(
85
+ {
86
+ "pair_ID": datasets.Value("int32"),
87
+ "sentence_A": datasets.Value("string"),
88
+ "sentence_B": datasets.Value("string"),
89
+ "relatedness_score": datasets.Value("float"),
90
+ }
91
+ )
92
+ return datasets.DatasetInfo(
93
+ description=_DESCRIPTION,
94
+ features=features,
95
+ supervised_keys=None,
96
+ homepage=_HOMEPAGE,
97
+ license=_LICENSE,
98
+ citation=_CITATION,
99
+ )
100
+
101
+ def _split_generators(self, dl_manager):
102
+ """Returns SplitGenerators."""
103
+ my_urls = _URLs[self.config.name]
104
+ data_dir = dl_manager.download_and_extract(my_urls)
105
+ return [
106
+ datasets.SplitGenerator(
107
+ name=datasets.Split.TRAIN,
108
+ gen_kwargs={
109
+ "filepath": os.path.join(data_dir, "train.tsv"),
110
+ "split": "train",
111
+ },
112
+ ),
113
+ datasets.SplitGenerator(
114
+ name=datasets.Split.TEST,
115
+ gen_kwargs={"filepath": os.path.join(data_dir, "test_features.tsv"), "split": "test"},
116
+ ),
117
+ datasets.SplitGenerator(
118
+ name=datasets.Split.VALIDATION,
119
+ gen_kwargs={
120
+ "filepath": os.path.join(data_dir, "dev.tsv"),
121
+ "split": "dev",
122
+ },
123
+ ),
124
+ ]
125
+
126
+ def _generate_examples(self, filepath, split):
127
+ """ Yields examples. """
128
+ with open(filepath, encoding="utf-8") as f:
129
+ reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
130
+ for id_, row in enumerate(reader):
131
+ if self.config.name == "cdsc-e":
132
+ yield id_, {
133
+ "pair_ID": row["pair_ID"],
134
+ "sentence_A": row["sentence_A"],
135
+ "sentence_B": row["sentence_B"],
136
+ "entailment_judgment": -1 if split == "test" else row["entailment_judgment"],
137
+ }
138
+ elif self.config.name == "cdsc-r":
139
+ yield id_, {
140
+ "pair_ID": row["pair_ID"],
141
+ "sentence_A": row["sentence_A"],
142
+ "sentence_B": row["sentence_B"],
143
+ "relatedness_score": "-1" if split == "test" else row["relatedness_score"],
144
+ }
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"cdsc-e": {"description": "Polish CDSCorpus consists of 10K Polish sentence pairs which are human-annotated for semantic relatedness and entailment. The dataset may be used for the evaluation of compositional distributional semantics models of Polish. The dataset was presented at ACL 2017. Please refer to the Wr\u00f3blewska and Krasnowska-Kiera\u015b (2017) for a detailed description of the resource.\n", "citation": "@inproceedings{wroblewska2017polish,\ntitle={Polish evaluation dataset for compositional distributional semantics models},\nauthor={Wr{'o}blewska, Alina and Krasnowska-Kiera{'s}, Katarzyna},\nbooktitle={Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},\npages={784--792},\nyear={2017}\n}\n", "homepage": "http://zil.ipipan.waw.pl/Scwad/CDSCorpus", "license": "CC BY-NC-SA 4.0", "features": {"pair_ID": {"dtype": "int32", "id": null, "_type": "Value"}, "sentence_A": {"dtype": "string", "id": null, "_type": "Value"}, "sentence_B": {"dtype": "string", "id": null, "_type": "Value"}, "entailment_judgment": {"num_classes": 3, "names": ["NEUTRAL", "CONTRADICTION", "ENTAILMENT"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "cdsc", "config_name": "cdsc-e", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1381902, "num_examples": 8000, "dataset_name": "cdsc"}, "test": {"name": "test", "num_bytes": 179400, "num_examples": 1000, "dataset_name": "cdsc"}, "validation": {"name": "validation", "num_bytes": 174662, "num_examples": 1000, "dataset_name": "cdsc"}}, "download_checksums": {"https://klejbenchmark.com/static/data/klej_cdsc-e.zip": {"num_bytes": 376079, "checksum": "5314b3294ec36c49793e83ed1923c4551bda3fe15c6060eddbc57d3b15c19c05"}}, "download_size": 376079, "post_processing_size": null, "dataset_size": 1735964, "size_in_bytes": 2112043}, "cdsc-r": {"description": "Polish CDSCorpus consists of 10K Polish sentence pairs which are human-annotated for semantic relatedness and entailment. The dataset may be used for the evaluation of compositional distributional semantics models of Polish. The dataset was presented at ACL 2017. Please refer to the Wr\u00f3blewska and Krasnowska-Kiera\u015b (2017) for a detailed description of the resource.\n", "citation": "@inproceedings{wroblewska2017polish,\ntitle={Polish evaluation dataset for compositional distributional semantics models},\nauthor={Wr{'o}blewska, Alina and Krasnowska-Kiera{'s}, Katarzyna},\nbooktitle={Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},\npages={784--792},\nyear={2017}\n}\n", "homepage": "http://zil.ipipan.waw.pl/Scwad/CDSCorpus", "license": "CC BY-NC-SA 4.0", "features": {"pair_ID": {"dtype": "int32", "id": null, "_type": "Value"}, "sentence_A": {"dtype": "string", "id": null, "_type": "Value"}, "sentence_B": {"dtype": "string", "id": null, "_type": "Value"}, "relatedness_score": {"dtype": "float32", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "cdsc", "config_name": "cdsc-r", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1349902, "num_examples": 8000, "dataset_name": "cdsc"}, "test": {"name": "test", "num_bytes": 175400, "num_examples": 1000, "dataset_name": "cdsc"}, "validation": {"name": "validation", "num_bytes": 170662, "num_examples": 1000, "dataset_name": "cdsc"}}, "download_checksums": {"https://klejbenchmark.com/static/data/klej_cdsc-r.zip": {"num_bytes": 381525, "checksum": "3e3358cc120bc0475e3944bd4491943a3b94d2fb4ed35773aa550ec99a1a70cc"}}, "download_size": 381525, "post_processing_size": null, "dataset_size": 1695964, "size_in_bytes": 2077489}}
dummy/cdsc-e/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae6a7323a95698e0cfd49b295f1aab224ca897e2ec857051f2d4084b33f84e12
3
+ size 1940
dummy/cdsc-r/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:919e4b2c15d915abadf9c355236b4b23b87afd156ee20dd3853fffe942d0e505
3
+ size 1930