system HF staff commited on
Commit
ab52446
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,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - crowdsourced
4
+ language_creators:
5
+ - expert-generated
6
+ languages:
7
+ - en
8
+ licenses:
9
+ - cc-by-4-0
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 1K<n<10K
14
+ source_datasets:
15
+ - extended|other-ImageFlickr and SemEval-2012 STS MSR-Video Descriptions
16
+ task_categories:
17
+ - text-classification
18
+ - text-scoring
19
+ task_ids:
20
+ - natural-language-inference
21
+ - semantic-similarity-scoring
22
+ ---
23
+
24
+ # Dataset Card for SemEval 2014 - Task 1
25
+
26
+ ## Table of Contents
27
+ - [Dataset Description](#dataset-description)
28
+ - [Dataset Summary](#dataset-summary)
29
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
30
+ - [Languages](#languages)
31
+ - [Dataset Structure](#dataset-structure)
32
+ - [Data Instances](#data-instances)
33
+ - [Data Fields](#data-instances)
34
+ - [Data Splits](#data-instances)
35
+ - [Dataset Creation](#dataset-creation)
36
+ - [Curation Rationale](#curation-rationale)
37
+ - [Source Data](#source-data)
38
+ - [Annotations](#annotations)
39
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
40
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
41
+ - [Social Impact of Dataset](#social-impact-of-dataset)
42
+ - [Discussion of Biases](#discussion-of-biases)
43
+ - [Other Known Limitations](#other-known-limitations)
44
+ - [Additional Information](#additional-information)
45
+ - [Dataset Curators](#dataset-curators)
46
+ - [Licensing Information](#licensing-information)
47
+ - [Citation Information](#citation-information)
48
+
49
+ ## Dataset Description
50
+
51
+ - **Homepage:** [SemEval-2014 Task 1](https://alt.qcri.org/semeval2014/task1/)
52
+ - **Repository:**
53
+ - **Paper:** [Aclweb](https://www.aclweb.org/anthology/S14-2001/)
54
+ - **Leaderboard:**
55
+ - **Point of Contact:**
56
+
57
+ ### Dataset Summary
58
+
59
+ [More Information Needed]
60
+
61
+ ### Supported Tasks and Leaderboards
62
+
63
+ [More Information Needed]
64
+
65
+ ### Languages
66
+
67
+ [More Information Needed]
68
+
69
+ ## Dataset Structure
70
+
71
+ ### Data Instances
72
+
73
+ [More Information Needed]
74
+
75
+ ### Data Fields
76
+
77
+ [More Information Needed]
78
+
79
+ ### Data Splits
80
+
81
+ [More Information Needed]
82
+
83
+ ## Dataset Creation
84
+
85
+ ### Curation Rationale
86
+
87
+ [More Information Needed]
88
+
89
+ ### Source Data
90
+
91
+ #### Initial Data Collection and Normalization
92
+
93
+ [More Information Needed]
94
+
95
+ #### Who are the source language producers?
96
+
97
+ [More Information Needed]
98
+
99
+ ### Annotations
100
+
101
+ #### Annotation process
102
+
103
+ [More Information Needed]
104
+
105
+ #### Who are the annotators?
106
+
107
+ [More Information Needed]
108
+
109
+ ### Personal and Sensitive Information
110
+
111
+ [More Information Needed]
112
+
113
+ ## Considerations for Using the Data
114
+
115
+ ### Social Impact of Dataset
116
+
117
+ [More Information Needed]
118
+
119
+ ### Discussion of Biases
120
+
121
+ [More Information Needed]
122
+
123
+ ### Other Known Limitations
124
+
125
+ [More Information Needed]
126
+
127
+ ## Additional Information
128
+
129
+ ### Dataset Curators
130
+
131
+ [More Information Needed]
132
+
133
+ ### Licensing Information
134
+
135
+ [More Information Needed]
136
+
137
+ ### Citation Information
138
+
139
+ [More Information Needed]
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"default": {"description": "The SemEval-2014 Task 1 focuses on Evaluation of Compositional Distributional Semantic Models\non Full Sentences through Semantic Relatedness and Entailment. The task was designed to\npredict the degree of relatedness between two sentences and to detect the entailment\nrelation holding between them.\n", "citation": "@inproceedings{inproceedings,\nauthor = {Marelli, Marco and Bentivogli, Luisa and Baroni, Marco and Bernardi, Raffaella and Menini, Stefano and Zamparelli, Roberto},\nyear = {2014},\nmonth = {08},\npages = {},\ntitle = {SemEval-2014 Task 1: Evaluation of Compositional Distributional Semantic Models on Full Sentences through Semantic Relatedness and Textual Entailment},\ndoi = {10.3115/v1/S14-2001}\n}\n", "homepage": "https://alt.qcri.org/semeval2014/task1/", "license": "", "features": {"sentence_pair_id": {"dtype": "int64", "id": null, "_type": "Value"}, "premise": {"dtype": "string", "id": null, "_type": "Value"}, "hypothesis": {"dtype": "string", "id": null, "_type": "Value"}, "relatedness_score": {"dtype": "float32", "id": null, "_type": "Value"}, "entailment_judgment": {"num_classes": 3, "names": ["NEUTRAL", "ENTAILMENT", "CONTRADICTION"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "sem_eval2014_task1", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 540296, "num_examples": 4500, "dataset_name": "sem_eval2014_task1"}, "test": {"name": "test", "num_bytes": 592320, "num_examples": 4927, "dataset_name": "sem_eval2014_task1"}, "validation": {"name": "validation", "num_bytes": 60981, "num_examples": 500, "dataset_name": "sem_eval2014_task1"}}, "download_checksums": {"https://alt.qcri.org/semeval2014/task1/data/uploads/sick_train.zip": {"num_bytes": 87341, "checksum": "097295b8ad526d80cefc7a56444424d7f39020729e589618b4d40bb654195e1a"}, "https://alt.qcri.org/semeval2014/task1/data/uploads/sick_test_annotated.zip": {"num_bytes": 93443, "checksum": "8a44227bb1f9d7249c0ac10cac54c5a6cc579195982b7f33fb0e3ebf5226b594"}, "https://alt.qcri.org/semeval2014/task1/data/uploads/sick_trial.zip": {"num_bytes": 16446, "checksum": "8a81f25e2807f64a9419218cf4bca1eca86f2b74de03b1311cad6e3262a15e94"}}, "download_size": 197230, "post_processing_size": null, "dataset_size": 1193597, "size_in_bytes": 1390827}}
dummy/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06e7a4748e6d1e8343ad6aa640ea85c6081b8b2988b7f45a75e69c3c804ed57d
3
+ size 2650
sem_eval_2014_task_1.py ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """The SemEval-2014 Task 1 on Evaluation of Compositional Distributional Semantic Models on Full Sentences through Semantic Relatedness and Entailment"""
16
+
17
+ from __future__ import absolute_import, division, print_function
18
+
19
+ import os
20
+
21
+ import datasets
22
+
23
+
24
+ _CITATION = """\
25
+ @inproceedings{inproceedings,
26
+ author = {Marelli, Marco and Bentivogli, Luisa and Baroni, Marco and Bernardi, Raffaella and Menini, Stefano and Zamparelli, Roberto},
27
+ year = {2014},
28
+ month = {08},
29
+ pages = {},
30
+ title = {SemEval-2014 Task 1: Evaluation of Compositional Distributional Semantic Models on Full Sentences through Semantic Relatedness and Textual Entailment},
31
+ doi = {10.3115/v1/S14-2001}
32
+ }
33
+ """
34
+
35
+ _DESCRIPTION = """\
36
+ The SemEval-2014 Task 1 focuses on Evaluation of Compositional Distributional Semantic Models
37
+ on Full Sentences through Semantic Relatedness and Entailment. The task was designed to
38
+ predict the degree of relatedness between two sentences and to detect the entailment
39
+ relation holding between them.
40
+ """
41
+
42
+ _HOMEPAGE = "https://alt.qcri.org/semeval2014/task1/"
43
+
44
+ _URLs = {
45
+ "train": "https://alt.qcri.org/semeval2014/task1/data/uploads/sick_train.zip",
46
+ "test": "https://alt.qcri.org/semeval2014/task1/data/uploads/sick_test_annotated.zip",
47
+ "validation": "https://alt.qcri.org/semeval2014/task1/data/uploads/sick_trial.zip",
48
+ }
49
+
50
+
51
+ class SemEval2014Task1(datasets.GeneratorBasedBuilder):
52
+ """The SemEval-2014 Task 1 on Evaluation of Compositional
53
+ Distributional Semantic Models on Full Sentences through
54
+ Semantic Relatedness and Entailment
55
+ """
56
+
57
+ VERSION = datasets.Version("1.0.0")
58
+
59
+ def _info(self):
60
+ return datasets.DatasetInfo(
61
+ # This is the description that will appear on the datasets page.
62
+ description=_DESCRIPTION,
63
+ # This defines the different columns of the dataset and their types
64
+ features=datasets.Features(
65
+ {
66
+ "sentence_pair_id": datasets.Value("int64"),
67
+ "premise": datasets.Value("string"),
68
+ "hypothesis": datasets.Value("string"),
69
+ "relatedness_score": datasets.Value("float32"),
70
+ "entailment_judgment": datasets.features.ClassLabel(
71
+ names=["NEUTRAL", "ENTAILMENT", "CONTRADICTION"]
72
+ ),
73
+ }
74
+ ),
75
+ # If there's a common (input, target) tuple from the features,
76
+ # specify them here. They'll be used if as_supervised=True in
77
+ # builder.as_dataset.
78
+ supervised_keys=None,
79
+ # Homepage of the dataset for documentation
80
+ homepage="https://alt.qcri.org/semeval2014/task1/",
81
+ citation=_CITATION,
82
+ )
83
+
84
+ def _split_generators(self, dl_manager):
85
+ """Returns SplitGenerators."""
86
+ # dl_manager is a datasets.download.DownloadManager that can be used to
87
+ # download and extract URLs
88
+ dl_dir = dl_manager.download_and_extract(_URLs)
89
+ return [
90
+ datasets.SplitGenerator(
91
+ name=datasets.Split.TRAIN,
92
+ # These kwargs will be passed to _generate_examples
93
+ gen_kwargs={
94
+ "filepath": os.path.join(dl_dir["train"], "SICK_train.txt"),
95
+ },
96
+ ),
97
+ datasets.SplitGenerator(
98
+ name=datasets.Split.TEST,
99
+ gen_kwargs={
100
+ "filepath": os.path.join(dl_dir["test"], "SICK_test_annotated.txt"),
101
+ },
102
+ ),
103
+ datasets.SplitGenerator(
104
+ name=datasets.Split.VALIDATION,
105
+ gen_kwargs={
106
+ "filepath": os.path.join(dl_dir["validation"], "SICK_trial.txt"),
107
+ },
108
+ ),
109
+ ]
110
+
111
+ def _generate_examples(self, filepath):
112
+ """ Yields examples. """
113
+ with open(filepath, "r", encoding="us-ascii") as file:
114
+ lines = file.readlines()
115
+
116
+ for idx in range(1, len(lines)):
117
+ features = lines[idx].split("\t")
118
+ sentence_pair_id = features[0]
119
+ premise = features[1]
120
+ hypothesis = features[2]
121
+ relatedness_score = float(features[3])
122
+ entailment_judgment = features[4].strip("\n")
123
+
124
+ yield idx, {
125
+ "sentence_pair_id": sentence_pair_id,
126
+ "premise": premise,
127
+ "hypothesis": hypothesis,
128
+ "relatedness_score": relatedness_score,
129
+ "entailment_judgment": entailment_judgment,
130
+ }