system HF staff commited on
Commit
c5ca7c4
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
+ - found
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ - pl
8
+ licenses:
9
+ - cc-by-sa-4-0
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 10K<n<100K
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - text-scoring
18
+ task_ids:
19
+ - sentiment-scoring
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
+ https://klejbenchmark.com/
51
+ - **Repository:**
52
+ https://github.com/allegro/klejbenchmark-allegroreviews
53
+ - **Paper:**
54
+ KLEJ: Comprehensive Benchmark for Polish Language Understanding (Rybak, Piotr and Mroczkowski, Robert and Tracz, Janusz and Gawlik, Ireneusz)
55
+ - **Leaderboard:**
56
+ https://klejbenchmark.com/leaderboard/
57
+ - **Point of Contact:**
58
+ klejbenchmark@allegro.pl
59
+
60
+ ### Dataset Summary
61
+
62
+ Allegro Reviews is a sentiment analysis dataset, consisting of 11,588 product reviews written in Polish and extracted from Allegro.pl - a popular e-commerce marketplace. Each review contains at least 50 words and has a rating on a scale from one (negative review) to five (positive review).
63
+
64
+ We recommend using the provided train/dev/test split. The ratings for the test set reviews are kept hidden. You can evaluate your model using the online evaluation tool available on klejbenchmark.com.
65
+
66
+ ### Supported Tasks and Leaderboards
67
+
68
+ Product reviews sentiment analysis.
69
+ https://klejbenchmark.com/leaderboard/
70
+
71
+ ### Languages
72
+
73
+ Polish
74
+
75
+ ## Dataset Structure
76
+
77
+ ### Data Instances
78
+
79
+ Two tsv files (train, dev) with two columns (text, rating) and one (test) with just one (text).
80
+
81
+ ### Data Fields
82
+
83
+ - text: a product review of at least 50 words
84
+ - rating: product rating of a scale of one (negative review) to five (positive review)
85
+
86
+ ### Data Splits
87
+
88
+ Data is splitted in train/dev/test split.
89
+
90
+ ## Dataset Creation
91
+
92
+ ### Curation Rationale
93
+
94
+ This dataset is one of nine evaluation tasks to improve polish language processing.
95
+
96
+ ### Source Data
97
+
98
+ #### Initial Data Collection and Normalization
99
+
100
+ The Allegro Reviews is a set of product reviews from a popular e-commerce marketplace (Allegro.pl).
101
+
102
+ #### Who are the source language producers?
103
+
104
+ Customers of an e-commerce marketplace.
105
+
106
+ ### Annotations
107
+
108
+ #### Annotation process
109
+
110
+ [More Information Needed]
111
+
112
+ #### Who are the annotators?
113
+
114
+ [More Information Needed]
115
+
116
+ ### Personal and Sensitive Information
117
+
118
+ [More Information Needed]
119
+
120
+ ## Considerations for Using the Data
121
+
122
+ ### Social Impact of Dataset
123
+
124
+ [More Information Needed]
125
+
126
+ ### Discussion of Biases
127
+
128
+ [More Information Needed]
129
+
130
+ ### Other Known Limitations
131
+
132
+ [More Information Needed]
133
+
134
+ ## Additional Information
135
+
136
+ ### Dataset Curators
137
+
138
+ Allegro Machine Learning Research team klejbenchmark@allegro.pl
139
+
140
+ ### Licensing Information
141
+
142
+ Dataset licensed under CC BY-SA 4.0
143
+
144
+ ### Citation Information
145
+
146
+ @inproceedings{rybak-etal-2020-klej,
147
+ title = "{KLEJ}: Comprehensive Benchmark for Polish Language Understanding",
148
+ author = "Rybak, Piotr and Mroczkowski, Robert and Tracz, Janusz and Gawlik, Ireneusz",
149
+ booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
150
+ month = jul,
151
+ year = "2020",
152
+ address = "Online",
153
+ publisher = "Association for Computational Linguistics",
154
+ url = "https://www.aclweb.org/anthology/2020.acl-main.111",
155
+ pages = "1191--1201",
156
+ }
allegro_reviews.py ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """Allegro Reviews dataset"""
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{rybak-etal-2020-klej,
27
+ title = "{KLEJ}: Comprehensive Benchmark for Polish Language Understanding",
28
+ author = "Rybak, Piotr and Mroczkowski, Robert and Tracz, Janusz and Gawlik, Ireneusz",
29
+ booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
30
+ month = jul,
31
+ year = "2020",
32
+ address = "Online",
33
+ publisher = "Association for Computational Linguistics",
34
+ url = "https://www.aclweb.org/anthology/2020.acl-main.111",
35
+ pages = "1191--1201",
36
+ }
37
+ """
38
+
39
+ _DESCRIPTION = """\
40
+ Allegro Reviews is a sentiment analysis dataset, consisting of 11,588 product reviews written in Polish and extracted
41
+ from Allegro.pl - a popular e-commerce marketplace. Each review contains at least 50 words and has a rating on a scale
42
+ from one (negative review) to five (positive review).
43
+
44
+ We recommend using the provided train/dev/test split. The ratings for the test set reviews are kept hidden.
45
+ You can evaluate your model using the online evaluation tool available on klejbenchmark.com.
46
+ """
47
+
48
+ _HOMEPAGE = "https://github.com/allegro/klejbenchmark-allegroreviews"
49
+
50
+ _LICENSE = "CC BY-SA 4.0"
51
+
52
+ _URLs = "https://klejbenchmark.com/static/data/klej_ar.zip"
53
+
54
+
55
+ class AllegroReviews(datasets.GeneratorBasedBuilder):
56
+ """
57
+ Allegro Reviews is a sentiment analysis dataset, consisting of 11,588 product reviews written in Polish
58
+ and extracted from Allegro.pl - a popular e-commerce marketplace.
59
+ """
60
+
61
+ VERSION = datasets.Version("1.1.0")
62
+
63
+ def _info(self):
64
+ return datasets.DatasetInfo(
65
+ description=_DESCRIPTION,
66
+ features=datasets.Features(
67
+ {
68
+ "text": datasets.Value("string"),
69
+ "rating": datasets.Value("float"),
70
+ }
71
+ ),
72
+ supervised_keys=None,
73
+ homepage=_HOMEPAGE,
74
+ license=_LICENSE,
75
+ citation=_CITATION,
76
+ )
77
+
78
+ def _split_generators(self, dl_manager):
79
+ """Returns SplitGenerators."""
80
+ data_dir = dl_manager.download_and_extract(_URLs)
81
+ return [
82
+ datasets.SplitGenerator(
83
+ name=datasets.Split.TRAIN,
84
+ gen_kwargs={
85
+ "filepath": os.path.join(data_dir, "train.tsv"),
86
+ "split": "train",
87
+ },
88
+ ),
89
+ datasets.SplitGenerator(
90
+ name=datasets.Split.TEST,
91
+ gen_kwargs={"filepath": os.path.join(data_dir, "test_features.tsv"), "split": "test"},
92
+ ),
93
+ datasets.SplitGenerator(
94
+ name=datasets.Split.VALIDATION,
95
+ gen_kwargs={
96
+ "filepath": os.path.join(data_dir, "dev.tsv"),
97
+ "split": "dev",
98
+ },
99
+ ),
100
+ ]
101
+
102
+ def _generate_examples(self, filepath, split):
103
+ """ Yields examples. """
104
+ with open(filepath, encoding="utf-8") as f:
105
+ reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
106
+ for id_, row in enumerate(reader):
107
+ yield id_, {
108
+ "text": row["text"],
109
+ "rating": "-1" if split == "test" else row["rating"],
110
+ }
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"default": {"description": "Allegro Reviews is a sentiment analysis dataset, consisting of 11,588 product reviews written in Polish and extracted \nfrom Allegro.pl - a popular e-commerce marketplace. Each review contains at least 50 words and has a rating on a scale \nfrom one (negative review) to five (positive review).\n\nWe recommend using the provided train/dev/test split. The ratings for the test set reviews are kept hidden. \nYou can evaluate your model using the online evaluation tool available on klejbenchmark.com.\n", "citation": "@inproceedings{rybak-etal-2020-klej,\n title = \"{KLEJ}: Comprehensive Benchmark for Polish Language Understanding\",\n author = \"Rybak, Piotr and Mroczkowski, Robert and Tracz, Janusz and Gawlik, Ireneusz\",\n booktitle = \"Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics\",\n month = jul,\n year = \"2020\",\n address = \"Online\",\n publisher = \"Association for Computational Linguistics\",\n url = \"https://www.aclweb.org/anthology/2020.acl-main.111\",\n pages = \"1191--1201\",\n}\n", "homepage": "https://github.com/allegro/klejbenchmark-allegroreviews", "license": "CC BY-SA 4.0", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "rating": {"dtype": "float32", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "allegro_reviews", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 4899539, "num_examples": 9577, "dataset_name": "allegro_reviews"}, "test": {"name": "test", "num_bytes": 514527, "num_examples": 1006, "dataset_name": "allegro_reviews"}, "validation": {"name": "validation", "num_bytes": 515785, "num_examples": 1002, "dataset_name": "allegro_reviews"}}, "download_checksums": {"https://klejbenchmark.com/static/data/klej_ar.zip": {"num_bytes": 2314847, "checksum": "7c74bdb440e15c36b0a66f32500decd86f29380fc42b28752f1335de143a99fc"}}, "download_size": 2314847, "post_processing_size": null, "dataset_size": 5929851, "size_in_bytes": 8244698}}
dummy/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c3e7176fdb95937aa1b91df6ddfb64ee760e717df7a9bfa05bd9971f6fb1617
3
+ size 4477