parquet-converter commited on
Commit
1d9ec24
1 Parent(s): b5d606f

Update parquet files

Browse files
README.md DELETED
@@ -1,438 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - found
4
- language_creators:
5
- - found
6
- language:
7
- - de
8
- - en
9
- - es
10
- - fr
11
- - ja
12
- - zh
13
- license:
14
- - other
15
- multilinguality:
16
- - monolingual
17
- - multilingual
18
- size_categories:
19
- - 100K<n<1M
20
- - 1M<n<10M
21
- source_datasets:
22
- - original
23
- task_categories:
24
- - summarization
25
- - text-generation
26
- - fill-mask
27
- - text-classification
28
- task_ids:
29
- - text-scoring
30
- - language-modeling
31
- - masked-language-modeling
32
- - sentiment-classification
33
- - sentiment-scoring
34
- - topic-classification
35
- paperswithcode_id: null
36
- pretty_name: The Multilingual Amazon Reviews Corpus
37
- configs:
38
- - all_languages
39
- - de
40
- - en
41
- - es
42
- - fr
43
- - ja
44
- - zh
45
- dataset_info:
46
- - config_name: all_languages
47
- features:
48
- - name: review_id
49
- dtype: string
50
- - name: product_id
51
- dtype: string
52
- - name: reviewer_id
53
- dtype: string
54
- - name: stars
55
- dtype: int32
56
- - name: review_body
57
- dtype: string
58
- - name: review_title
59
- dtype: string
60
- - name: language
61
- dtype: string
62
- - name: product_category
63
- dtype: string
64
- splits:
65
- - name: train
66
- num_bytes: 364405048
67
- num_examples: 1200000
68
- - name: validation
69
- num_bytes: 9047533
70
- num_examples: 30000
71
- - name: test
72
- num_bytes: 9099141
73
- num_examples: 30000
74
- download_size: 640320386
75
- dataset_size: 382551722
76
- - config_name: de
77
- features:
78
- - name: review_id
79
- dtype: string
80
- - name: product_id
81
- dtype: string
82
- - name: reviewer_id
83
- dtype: string
84
- - name: stars
85
- dtype: int32
86
- - name: review_body
87
- dtype: string
88
- - name: review_title
89
- dtype: string
90
- - name: language
91
- dtype: string
92
- - name: product_category
93
- dtype: string
94
- splits:
95
- - name: train
96
- num_bytes: 64485678
97
- num_examples: 200000
98
- - name: validation
99
- num_bytes: 1605727
100
- num_examples: 5000
101
- - name: test
102
- num_bytes: 1611044
103
- num_examples: 5000
104
- download_size: 94802490
105
- dataset_size: 67702449
106
- - config_name: en
107
- features:
108
- - name: review_id
109
- dtype: string
110
- - name: product_id
111
- dtype: string
112
- - name: reviewer_id
113
- dtype: string
114
- - name: stars
115
- dtype: int32
116
- - name: review_body
117
- dtype: string
118
- - name: review_title
119
- dtype: string
120
- - name: language
121
- dtype: string
122
- - name: product_category
123
- dtype: string
124
- splits:
125
- - name: train
126
- num_bytes: 58601089
127
- num_examples: 200000
128
- - name: validation
129
- num_bytes: 1474672
130
- num_examples: 5000
131
- - name: test
132
- num_bytes: 1460565
133
- num_examples: 5000
134
- download_size: 86094112
135
- dataset_size: 61536326
136
- - config_name: es
137
- features:
138
- - name: review_id
139
- dtype: string
140
- - name: product_id
141
- dtype: string
142
- - name: reviewer_id
143
- dtype: string
144
- - name: stars
145
- dtype: int32
146
- - name: review_body
147
- dtype: string
148
- - name: review_title
149
- dtype: string
150
- - name: language
151
- dtype: string
152
- - name: product_category
153
- dtype: string
154
- splits:
155
- - name: train
156
- num_bytes: 52375658
157
- num_examples: 200000
158
- - name: validation
159
- num_bytes: 1303958
160
- num_examples: 5000
161
- - name: test
162
- num_bytes: 1312347
163
- num_examples: 5000
164
- download_size: 81345461
165
- dataset_size: 54991963
166
- - config_name: fr
167
- features:
168
- - name: review_id
169
- dtype: string
170
- - name: product_id
171
- dtype: string
172
- - name: reviewer_id
173
- dtype: string
174
- - name: stars
175
- dtype: int32
176
- - name: review_body
177
- dtype: string
178
- - name: review_title
179
- dtype: string
180
- - name: language
181
- dtype: string
182
- - name: product_category
183
- dtype: string
184
- splits:
185
- - name: train
186
- num_bytes: 54593565
187
- num_examples: 200000
188
- - name: validation
189
- num_bytes: 1340763
190
- num_examples: 5000
191
- - name: test
192
- num_bytes: 1364510
193
- num_examples: 5000
194
- download_size: 85917293
195
- dataset_size: 57298838
196
- - config_name: ja
197
- features:
198
- - name: review_id
199
- dtype: string
200
- - name: product_id
201
- dtype: string
202
- - name: reviewer_id
203
- dtype: string
204
- - name: stars
205
- dtype: int32
206
- - name: review_body
207
- dtype: string
208
- - name: review_title
209
- dtype: string
210
- - name: language
211
- dtype: string
212
- - name: product_category
213
- dtype: string
214
- splits:
215
- - name: train
216
- num_bytes: 82401390
217
- num_examples: 200000
218
- - name: validation
219
- num_bytes: 2035391
220
- num_examples: 5000
221
- - name: test
222
- num_bytes: 2048048
223
- num_examples: 5000
224
- download_size: 177773783
225
- dataset_size: 86484829
226
- - config_name: zh
227
- features:
228
- - name: review_id
229
- dtype: string
230
- - name: product_id
231
- dtype: string
232
- - name: reviewer_id
233
- dtype: string
234
- - name: stars
235
- dtype: int32
236
- - name: review_body
237
- dtype: string
238
- - name: review_title
239
- dtype: string
240
- - name: language
241
- dtype: string
242
- - name: product_category
243
- dtype: string
244
- splits:
245
- - name: train
246
- num_bytes: 51947668
247
- num_examples: 200000
248
- - name: validation
249
- num_bytes: 1287106
250
- num_examples: 5000
251
- - name: test
252
- num_bytes: 1302711
253
- num_examples: 5000
254
- download_size: 114387247
255
- dataset_size: 54537485
256
- ---
257
-
258
- # Dataset Card for The Multilingual Amazon Reviews Corpus
259
-
260
- ## Table of Contents
261
- - [Dataset Card for amazon_reviews_multi](#dataset-card-for-amazon_reviews_multi)
262
- - [Table of Contents](#table-of-contents)
263
- - [Dataset Description](#dataset-description)
264
- - [Dataset Summary](#dataset-summary)
265
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
266
- - [Languages](#languages)
267
- - [Dataset Structure](#dataset-structure)
268
- - [Data Instances](#data-instances)
269
- - [plain_text](#plain_text)
270
- - [Data Fields](#data-fields)
271
- - [plain_text](#plain_text-1)
272
- - [Data Splits](#data-splits)
273
- - [Dataset Creation](#dataset-creation)
274
- - [Curation Rationale](#curation-rationale)
275
- - [Source Data](#source-data)
276
- - [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
277
- - [Who are the source language producers?](#who-are-the-source-language-producers)
278
- - [Annotations](#annotations)
279
- - [Annotation process](#annotation-process)
280
- - [Who are the annotators?](#who-are-the-annotators)
281
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
282
- - [Considerations for Using the Data](#considerations-for-using-the-data)
283
- - [Social Impact of Dataset](#social-impact-of-dataset)
284
- - [Discussion of Biases](#discussion-of-biases)
285
- - [Other Known Limitations](#other-known-limitations)
286
- - [Additional Information](#additional-information)
287
- - [Dataset Curators](#dataset-curators)
288
- - [Licensing Information](#licensing-information)
289
- - [Citation Information](#citation-information)
290
- - [Contributions](#contributions)
291
-
292
- ## Dataset Description
293
-
294
- - **Webpage:** https://registry.opendata.aws/amazon-reviews-ml/
295
- - **Paper:** https://arxiv.org/abs/2010.02573
296
- - **Point of Contact:** multilingual-reviews-dataset@amazon.com
297
-
298
- ### Dataset Summary
299
-
300
- We provide an Amazon product reviews dataset for multilingual text classification. The dataset contains reviews in English, Japanese, German, French, Chinese and Spanish, collected between November 1, 2015 and November 1, 2019. Each record in the dataset contains the review text, the review title, the star rating, an anonymized reviewer ID, an anonymized product ID and the coarse-grained product category (e.g. ‘books’, ‘appliances’, etc.) The corpus is balanced across stars, so each star rating constitutes 20% of the reviews in each language.
301
-
302
- For each language, there are 200,000, 5,000 and 5,000 reviews in the training, development and test sets respectively. The maximum number of reviews per reviewer is 20 and the maximum number of reviews per product is 20. All reviews are truncated after 2,000 characters, and all reviews are at least 20 characters long.
303
-
304
- Note that the language of a review does not necessarily match the language of its marketplace (e.g. reviews from amazon.de are primarily written in German, but could also be written in English, etc.). For this reason, we applied a language detection algorithm based on the work in Bojanowski et al. (2017) to determine the language of the review text and we removed reviews that were not written in the expected language.
305
-
306
- ### Supported Tasks and Leaderboards
307
-
308
- [More Information Needed]
309
-
310
- ### Languages
311
-
312
- The dataset contains reviews in English, Japanese, German, French, Chinese and Spanish.
313
-
314
- ## Dataset Structure
315
-
316
- ### Data Instances
317
-
318
- Each data instance corresponds to a review. The original JSON for an instance looks like so (German example):
319
-
320
- ```json
321
- {
322
- "review_id":"de_0784695",
323
- "product_id":"product_de_0572654",
324
- "reviewer_id":"reviewer_de_0645436",
325
- "stars":"1",
326
- "review_body":"Leider, leider nach einmal waschen ausgeblichen . Es sieht super h\u00fcbsch aus , nur leider stinkt es ganz schrecklich und ein Waschgang in der Maschine ist notwendig ! Nach einem mal waschen sah es aus als w\u00e4re es 10 Jahre alt und hatte 1000 e von Waschg\u00e4ngen hinter sich :( echt schade !",
327
- "review_title":"Leider nicht zu empfehlen",
328
- "language":"de",
329
- "product_category":"home"
330
- }
331
- ```
332
-
333
- ### Data Fields
334
-
335
- - `review_id`: A string identifier of the review.
336
- - `product_id`: A string identifier of the product being reviewed.
337
- - `reviewer_id`: A string identifier of the reviewer.
338
- - `stars`: An int between 1-5 indicating the number of stars.
339
- - `review_body`: The text body of the review.
340
- - `review_title`: The text title of the review.
341
- - `language`: The string identifier of the review language.
342
- - `product_category`: String representation of the product's category.
343
-
344
- ### Data Splits
345
-
346
- Each language configuration comes with it's own `train`, `validation`, and `test` splits. The `all_languages` split
347
- is simply a concatenation of the corresponding split across all languages. That is, the `train` split for
348
- `all_languages` is a concatenation of the `train` splits for each of the languages and likewise for `validation` and
349
- `test`.
350
-
351
- ## Dataset Creation
352
-
353
- ### Curation Rationale
354
-
355
- The dataset is motivated by the desire to advance sentiment analysis and text classification in other (non-English)
356
- languages.
357
-
358
- ### Source Data
359
-
360
- #### Initial Data Collection and Normalization
361
-
362
- The authors gathered the reviews from the marketplaces in the US, Japan, Germany, France, Spain, and China for the
363
- English, Japanese, German, French, Spanish, and Chinese languages, respectively. They then ensured the correct
364
- language by applying a language detection algorithm, only retaining those of the target language. In a random sample
365
- of the resulting reviews, the authors observed a small percentage of target languages that were incorrectly filtered
366
- out and a very few mismatched languages that were incorrectly retained.
367
-
368
- #### Who are the source language producers?
369
-
370
- The original text comes from Amazon customers reviewing products on the marketplace across a variety of product
371
- categories.
372
-
373
- ### Annotations
374
-
375
- #### Annotation process
376
-
377
- Each of the fields included are submitted by the user with the review or otherwise associated with the review. No
378
- manual or machine-driven annotation was necessary.
379
-
380
- #### Who are the annotators?
381
-
382
- N/A
383
-
384
- ### Personal and Sensitive Information
385
-
386
- Amazon Reviews are submitted by users with the knowledge and attention of being public. The reviewer ID's included in
387
- this dataset are quasi-anonymized, meaning that they are disassociated from the original user profiles. However,
388
- these fields would likely be easy to deannoymize given the public and identifying nature of free-form text responses.
389
-
390
- ## Considerations for Using the Data
391
-
392
- ### Social Impact of Dataset
393
-
394
- This dataset is part of an effort to encourage text classification research in languages other than English. Such
395
- work increases the accessibility of natural language technology to more regions and cultures. Unfortunately, each of
396
- the languages included here is relatively high resource and well studied.
397
-
398
- ### Discussion of Biases
399
-
400
- The data included here are from unverified consumers. Some percentage of these reviews may be fake or contain
401
- misleading or offensive language.
402
- ### Other Known Limitations
403
-
404
- The dataset is constructed so that the distribution of star ratings is balanced. This feature has some advantages for
405
- purposes of classification, but some types of language may be over or underrepresented relative to the original
406
- distribution of reviews to acheive this balance.
407
-
408
- [More Information Needed]
409
-
410
- ## Additional Information
411
-
412
- ### Dataset Curators
413
-
414
- Published by Phillip Keung, Yichao Lu, György Szarvas, and Noah A. Smith. Managed by Amazon.
415
-
416
- ### Licensing Information
417
-
418
- Amazon has licensed this dataset under its own agreement for non-commercial research usage only. This licence is quite restrictive preventing use anywhere a fee is received including paid for internships etc. A copy of the agreement can be found at the dataset webpage here:
419
- https://docs.opendata.aws/amazon-reviews-ml/license.txt
420
-
421
- ### Citation Information
422
-
423
- Please cite the following paper (arXiv) if you found this dataset useful:
424
-
425
- Phillip Keung, Yichao Lu, György Szarvas and Noah A. Smith. “The Multilingual Amazon Reviews Corpus.” In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 2020.
426
-
427
- ```
428
- @inproceedings{marc_reviews,
429
- title={The Multilingual Amazon Reviews Corpus},
430
- author={Keung, Phillip and Lu, Yichao and Szarvas, György and Smith, Noah A.},
431
- booktitle={Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing},
432
- year={2020}
433
- }
434
- ```
435
-
436
- ### Contributions
437
-
438
- Thanks to [@joeddav](https://github.com/joeddav) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
all_languages/amazon_reviews_multi-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ecd082829b17f79462baed015590acfa66b497cac95d623b5549fbb66ee81b0
3
+ size 5166225
all_languages/amazon_reviews_multi-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95533d7d78ba49f47dd972974f528c510ef43347f9beeb518469e4e650ebb213
3
+ size 206958333
all_languages/amazon_reviews_multi-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b7cee977f24fd9f80ae326af558c491261c5512cce53bc751ee79d98e58852e
3
+ size 5128340
amazon_reviews_multi.py DELETED
@@ -1,131 +0,0 @@
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
- """The Multilingual Amazon Reviews Corpus"""
17
-
18
-
19
- import json
20
-
21
- import datasets
22
-
23
-
24
- _CITATION = """\
25
- @inproceedings{marc_reviews,
26
- title={The Multilingual Amazon Reviews Corpus},
27
- author={Keung, Phillip and Lu, Yichao and Szarvas, György and Smith, Noah A.},
28
- booktitle={Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing},
29
- year={2020}
30
- }
31
- """
32
-
33
- _LICENSE = """\
34
- By accessing the Multilingual Amazon Reviews Corpus ("Reviews Corpus"), you agree that the Reviews Corpus is an Amazon Service subject to the Amazon.com Conditions of Use (https://www.amazon.com/gp/help/customer/display.html/ref=footer_cou?ie=UTF8&nodeId=508088) and you agree to be bound by them, with the following additional conditions:
35
-
36
- In addition to the license rights granted under the Conditions of Use, Amazon or its content providers grant you a limited, non-exclusive, non-transferable, non-sublicensable, revocable license to access and use the Reviews Corpus for purposes of academic research. You may not resell, republish, or make any commercial use of the Reviews Corpus or its contents, including use of the Reviews Corpus for commercial research, such as research related to a funding or consultancy contract, internship, or other relationship in which the results are provided for a fee or delivered to a for-profit organization. You may not (a) link or associate content in the Reviews Corpus with any personal information (including Amazon customer accounts), or (b) attempt to determine the identity of the author of any content in the Reviews Corpus. If you violate any of the foregoing conditions, your license to access and use the Reviews Corpus will automatically terminate without prejudice to any of the other rights or remedies Amazon may have.
37
- """
38
-
39
- _DESCRIPTION = """\
40
- We provide an Amazon product reviews dataset for multilingual text classification. The dataset contains reviews in English, Japanese, German, French, Chinese and Spanish, collected between November 1, 2015 and November 1, 2019. Each record in the dataset contains the review text, the review title, the star rating, an anonymized reviewer ID, an anonymized product ID and the coarse-grained product category (e.g. ‘books’, ‘appliances’, etc.) The corpus is balanced across stars, so each star rating constitutes 20% of the reviews in each language.
41
-
42
- For each language, there are 200,000, 5,000 and 5,000 reviews in the training, development and test sets respectively. The maximum number of reviews per reviewer is 20 and the maximum number of reviews per product is 20. All reviews are truncated after 2,000 characters, and all reviews are at least 20 characters long.
43
-
44
- Note that the language of a review does not necessarily match the language of its marketplace (e.g. reviews from amazon.de are primarily written in German, but could also be written in English, etc.). For this reason, we applied a language detection algorithm based on the work in Bojanowski et al. (2017) to determine the language of the review text and we removed reviews that were not written in the expected language.
45
- """
46
-
47
- _LANGUAGES = {
48
- "de": "German",
49
- "en": "English",
50
- "es": "Spanish",
51
- "fr": "French",
52
- "ja": "Japanese",
53
- "zh": "Chinese",
54
- }
55
- _ALL_LANGUAGES = "all_languages"
56
- _VERSION = "1.0.0"
57
- _HOMEPAGE_URL = "https://registry.opendata.aws/amazon-reviews-ml/"
58
- _DOWNLOAD_URL = "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/{split}/dataset_{lang}_{split}.json"
59
-
60
-
61
- class AmazonReviewsMultiConfig(datasets.BuilderConfig):
62
- """BuilderConfig for AmazonReviewsMultiConfig."""
63
-
64
- def __init__(self, languages=None, **kwargs):
65
- super(AmazonReviewsMultiConfig, self).__init__(version=datasets.Version(_VERSION, ""), **kwargs),
66
- self.languages = languages
67
-
68
-
69
- class AmazonReviewsMulti(datasets.GeneratorBasedBuilder):
70
- """The Multilingual Amazon Reviews Corpus"""
71
-
72
- BUILDER_CONFIGS = [
73
- AmazonReviewsMultiConfig(
74
- name=_ALL_LANGUAGES,
75
- languages=_LANGUAGES,
76
- description="A collection of Amazon reviews specifically designed to aid research in multilingual text classification.",
77
- )
78
- ] + [
79
- AmazonReviewsMultiConfig(
80
- name=lang,
81
- languages=[lang],
82
- description=f"{_LANGUAGES[lang]} examples from a collection of Amazon reviews specifically designed to aid research in multilingual text classification",
83
- )
84
- for lang in _LANGUAGES
85
- ]
86
- BUILDER_CONFIG_CLASS = AmazonReviewsMultiConfig
87
- DEFAULT_CONFIG_NAME = _ALL_LANGUAGES
88
-
89
- def _info(self):
90
- return datasets.DatasetInfo(
91
- description=_DESCRIPTION,
92
- features=datasets.Features(
93
- {
94
- "review_id": datasets.Value("string"),
95
- "product_id": datasets.Value("string"),
96
- "reviewer_id": datasets.Value("string"),
97
- "stars": datasets.Value("int32"),
98
- "review_body": datasets.Value("string"),
99
- "review_title": datasets.Value("string"),
100
- "language": datasets.Value("string"),
101
- "product_category": datasets.Value("string"),
102
- }
103
- ),
104
- supervised_keys=None,
105
- license=_LICENSE,
106
- homepage=_HOMEPAGE_URL,
107
- citation=_CITATION,
108
- )
109
-
110
- def _split_generators(self, dl_manager):
111
- train_urls = [_DOWNLOAD_URL.format(split="train", lang=lang) for lang in self.config.languages]
112
- dev_urls = [_DOWNLOAD_URL.format(split="dev", lang=lang) for lang in self.config.languages]
113
- test_urls = [_DOWNLOAD_URL.format(split="test", lang=lang) for lang in self.config.languages]
114
-
115
- train_paths = dl_manager.download_and_extract(train_urls)
116
- dev_paths = dl_manager.download_and_extract(dev_urls)
117
- test_paths = dl_manager.download_and_extract(test_urls)
118
-
119
- return [
120
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"file_paths": train_paths}),
121
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"file_paths": dev_paths}),
122
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"file_paths": test_paths}),
123
- ]
124
-
125
- def _generate_examples(self, file_paths):
126
- row_count = 0
127
- for file_path in file_paths:
128
- with open(file_path, "r", encoding="utf-8") as f:
129
- for line in f:
130
- yield row_count, json.loads(line)
131
- row_count += 1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"all_languages": {"description": "We provide an Amazon product reviews dataset for multilingual text classification. The dataset contains reviews in English, Japanese, German, French, Chinese and Spanish, collected between November 1, 2015 and November 1, 2019. Each record in the dataset contains the review text, the review title, the star rating, an anonymized reviewer ID, an anonymized product ID and the coarse-grained product category (e.g. \u2018books\u2019, \u2018appliances\u2019, etc.) The corpus is balanced across stars, so each star rating constitutes 20% of the reviews in each language.\n\nFor each language, there are 200,000, 5,000 and 5,000 reviews in the training, development and test sets respectively. The maximum number of reviews per reviewer is 20 and the maximum number of reviews per product is 20. All reviews are truncated after 2,000 characters, and all reviews are at least 20 characters long.\n\nNote that the language of a review does not necessarily match the language of its marketplace (e.g. reviews from amazon.de are primarily written in German, but could also be written in English, etc.). For this reason, we applied a language detection algorithm based on the work in Bojanowski et al. (2017) to determine the language of the review text and we removed reviews that were not written in the expected language.\n", "citation": "@inproceedings{marc_reviews,\n title={The Multilingual Amazon Reviews Corpus},\n author={Keung, Phillip and Lu, Yichao and Szarvas, Gy\u00f6rgy and Smith, Noah A.},\n booktitle={Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing},\n year={2020}\n}\n", "homepage": "https://registry.opendata.aws/amazon-reviews-ml/", "license": "By accessing the Multilingual Amazon Reviews Corpus (\"Reviews Corpus\"), you agree that the Reviews Corpus is an Amazon Service subject to the Amazon.com Conditions of Use (https://www.amazon.com/gp/help/customer/display.html/ref=footer_cou?ie=UTF8&nodeId=508088) and you agree to be bound by them, with the following additional conditions:\n\nIn addition to the license rights granted under the Conditions of Use, Amazon or its content providers grant you a limited, non-exclusive, non-transferable, non-sublicensable, revocable license to access and use the Reviews Corpus for purposes of academic research. You may not resell, republish, or make any commercial use of the Reviews Corpus or its contents, including use of the Reviews Corpus for commercial research, such as research related to a funding or consultancy contract, internship, or other relationship in which the results are provided for a fee or delivered to a for-profit organization. You may not (a) link or associate content in the Reviews Corpus with any personal information (including Amazon customer accounts), or (b) attempt to determine the identity of the author of any content in the Reviews Corpus. If you violate any of the foregoing conditions, your license to access and use the Reviews Corpus will automatically terminate without prejudice to any of the other rights or remedies Amazon may have.\n", "features": {"review_id": {"dtype": "string", "id": null, "_type": "Value"}, "product_id": {"dtype": "string", "id": null, "_type": "Value"}, "reviewer_id": {"dtype": "string", "id": null, "_type": "Value"}, "stars": {"dtype": "int32", "id": null, "_type": "Value"}, "review_body": {"dtype": "string", "id": null, "_type": "Value"}, "review_title": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "product_category": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "amazon_reviews_multi", "config_name": "all_languages", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 364405048, "num_examples": 1200000, "dataset_name": "amazon_reviews_multi"}, "validation": {"name": "validation", "num_bytes": 9047533, "num_examples": 30000, "dataset_name": "amazon_reviews_multi"}, "test": {"name": "test", "num_bytes": 9099141, "num_examples": 30000, "dataset_name": "amazon_reviews_multi"}}, "download_checksums": {"https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_de_train.json": {"num_bytes": 90296053, "checksum": "b6db74af028e3777f2e87ff2281bc31135b2e53747205a37119722e070d0e0e0"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_en_train.json": {"num_bytes": 81989414, "checksum": "8a3265e94b6dd365811f1d1e8812c4ccb999dae4044eebe2c529c2be9519bab9"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_es_train.json": {"num_bytes": 77475023, "checksum": "e5bd5f4bc2473041126f3efaf3b0069cdeaefc0f973bf92c6da3b345fad192f1"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_fr_train.json": {"num_bytes": 81853486, "checksum": "b6811b844f4889eedafa663c66d8f91454ed077ac0bf95242740bb60efcd0a53"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_ja_train.json": {"num_bytes": 169377614, "checksum": "3f7a5f7ccafc14a5a80cdda1ad21c40181092561703281b1ab64d8beb28581f0"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_zh_train.json": {"num_bytes": 108954151, "checksum": "61bc8cc2470b2fd608f7292e2a7c30b487cc92857987048288233932c6af7c4d"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/dev/dataset_de_dev.json": {"num_bytes": 2250151, "checksum": "9c1eb1cec34947acd366c72a1c15b8f845cf2aafe6db2f037de9ab8176fe407e"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/dev/dataset_en_dev.json": {"num_bytes": 2059600, "checksum": "a5fdeedc17532b160c95e61a6c87ba5458552a96781415690d770b753114f909"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/dev/dataset_es_dev.json": {"num_bytes": 1930836, "checksum": "066256efe2896859cd218b79bb32eadf9fc826aa8c023145a7fdc65374d0ab22"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/dev/dataset_fr_dev.json": {"num_bytes": 2019337, "checksum": "6ec4446b78afcd3807af2cca642cbfd25aaf4cbf48ba60f3dbc2de8e7df91634"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/dev/dataset_ja_dev.json": {"num_bytes": 4185487, "checksum": "482e893e1a41f437874566eaafdfcb597727550cc685801c0a9a3b594364a2c0"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/dev/dataset_zh_dev.json": {"num_bytes": 2701152, "checksum": "182903bb284abd81a25b7f03b1c30eb5c4391715defcbe7badd14ccb7e876dd1"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/test/dataset_de_test.json": {"num_bytes": 2256286, "checksum": "7e573370f5566a3a5490fb1d13a6f485d0f69c0a38e20cf2bda185f5ac2ec8f6"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/test/dataset_en_test.json": {"num_bytes": 2045098, "checksum": "eb1d41c7ce0da2556daac34d6a0c7f28c3ffe268f1d24c60fea5ae8950448ffc"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/test/dataset_es_test.json": {"num_bytes": 1939602, "checksum": "5c4b77f18682b659e34bc12ac321e33e37600d30d9a2751c941f7cf3c6f62ac3"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/test/dataset_fr_test.json": {"num_bytes": 2044470, "checksum": "4728c7eea42b22d5b09a3c8d9846cfbbe8e5a21d05f250114010d466c23eb55e"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/test/dataset_ja_test.json": {"num_bytes": 4210682, "checksum": "09e0e1dc433cd4f8dfd6385462eb739e2bddefdd0e52717c6f890938f751be1f"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/test/dataset_zh_test.json": {"num_bytes": 2731944, "checksum": "6c88bc31ce9fc54fa78c3df84322634620746a5e097fd127b7adce2fd1bcafa5"}}, "download_size": 640320386, "post_processing_size": null, "dataset_size": 382551722, "size_in_bytes": 1022872108}, "de": {"description": "We provide an Amazon product reviews dataset for multilingual text classification. The dataset contains reviews in English, Japanese, German, French, Chinese and Spanish, collected between November 1, 2015 and November 1, 2019. Each record in the dataset contains the review text, the review title, the star rating, an anonymized reviewer ID, an anonymized product ID and the coarse-grained product category (e.g. \u2018books\u2019, \u2018appliances\u2019, etc.) The corpus is balanced across stars, so each star rating constitutes 20% of the reviews in each language.\n\nFor each language, there are 200,000, 5,000 and 5,000 reviews in the training, development and test sets respectively. The maximum number of reviews per reviewer is 20 and the maximum number of reviews per product is 20. All reviews are truncated after 2,000 characters, and all reviews are at least 20 characters long.\n\nNote that the language of a review does not necessarily match the language of its marketplace (e.g. reviews from amazon.de are primarily written in German, but could also be written in English, etc.). For this reason, we applied a language detection algorithm based on the work in Bojanowski et al. (2017) to determine the language of the review text and we removed reviews that were not written in the expected language.\n", "citation": "@inproceedings{marc_reviews,\n title={The Multilingual Amazon Reviews Corpus},\n author={Keung, Phillip and Lu, Yichao and Szarvas, Gy\u00f6rgy and Smith, Noah A.},\n booktitle={Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing},\n year={2020}\n}\n", "homepage": "https://registry.opendata.aws/amazon-reviews-ml/", "license": "By accessing the Multilingual Amazon Reviews Corpus (\"Reviews Corpus\"), you agree that the Reviews Corpus is an Amazon Service subject to the Amazon.com Conditions of Use (https://www.amazon.com/gp/help/customer/display.html/ref=footer_cou?ie=UTF8&nodeId=508088) and you agree to be bound by them, with the following additional conditions:\n\nIn addition to the license rights granted under the Conditions of Use, Amazon or its content providers grant you a limited, non-exclusive, non-transferable, non-sublicensable, revocable license to access and use the Reviews Corpus for purposes of academic research. You may not resell, republish, or make any commercial use of the Reviews Corpus or its contents, including use of the Reviews Corpus for commercial research, such as research related to a funding or consultancy contract, internship, or other relationship in which the results are provided for a fee or delivered to a for-profit organization. You may not (a) link or associate content in the Reviews Corpus with any personal information (including Amazon customer accounts), or (b) attempt to determine the identity of the author of any content in the Reviews Corpus. If you violate any of the foregoing conditions, your license to access and use the Reviews Corpus will automatically terminate without prejudice to any of the other rights or remedies Amazon may have.\n", "features": {"review_id": {"dtype": "string", "id": null, "_type": "Value"}, "product_id": {"dtype": "string", "id": null, "_type": "Value"}, "reviewer_id": {"dtype": "string", "id": null, "_type": "Value"}, "stars": {"dtype": "int32", "id": null, "_type": "Value"}, "review_body": {"dtype": "string", "id": null, "_type": "Value"}, "review_title": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "product_category": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "amazon_reviews_multi", "config_name": "de", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 64485678, "num_examples": 200000, "dataset_name": "amazon_reviews_multi"}, "validation": {"name": "validation", "num_bytes": 1605727, "num_examples": 5000, "dataset_name": "amazon_reviews_multi"}, "test": {"name": "test", "num_bytes": 1611044, "num_examples": 5000, "dataset_name": "amazon_reviews_multi"}}, "download_checksums": {"https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_de_train.json": {"num_bytes": 90296053, "checksum": "b6db74af028e3777f2e87ff2281bc31135b2e53747205a37119722e070d0e0e0"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/dev/dataset_de_dev.json": {"num_bytes": 2250151, "checksum": "9c1eb1cec34947acd366c72a1c15b8f845cf2aafe6db2f037de9ab8176fe407e"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/test/dataset_de_test.json": {"num_bytes": 2256286, "checksum": "7e573370f5566a3a5490fb1d13a6f485d0f69c0a38e20cf2bda185f5ac2ec8f6"}}, "download_size": 94802490, "post_processing_size": null, "dataset_size": 67702449, "size_in_bytes": 162504939}, "en": {"description": "We provide an Amazon product reviews dataset for multilingual text classification. The dataset contains reviews in English, Japanese, German, French, Chinese and Spanish, collected between November 1, 2015 and November 1, 2019. Each record in the dataset contains the review text, the review title, the star rating, an anonymized reviewer ID, an anonymized product ID and the coarse-grained product category (e.g. \u2018books\u2019, \u2018appliances\u2019, etc.) The corpus is balanced across stars, so each star rating constitutes 20% of the reviews in each language.\n\nFor each language, there are 200,000, 5,000 and 5,000 reviews in the training, development and test sets respectively. The maximum number of reviews per reviewer is 20 and the maximum number of reviews per product is 20. All reviews are truncated after 2,000 characters, and all reviews are at least 20 characters long.\n\nNote that the language of a review does not necessarily match the language of its marketplace (e.g. reviews from amazon.de are primarily written in German, but could also be written in English, etc.). For this reason, we applied a language detection algorithm based on the work in Bojanowski et al. (2017) to determine the language of the review text and we removed reviews that were not written in the expected language.\n", "citation": "@inproceedings{marc_reviews,\n title={The Multilingual Amazon Reviews Corpus},\n author={Keung, Phillip and Lu, Yichao and Szarvas, Gy\u00f6rgy and Smith, Noah A.},\n booktitle={Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing},\n year={2020}\n}\n", "homepage": "https://registry.opendata.aws/amazon-reviews-ml/", "license": "By accessing the Multilingual Amazon Reviews Corpus (\"Reviews Corpus\"), you agree that the Reviews Corpus is an Amazon Service subject to the Amazon.com Conditions of Use (https://www.amazon.com/gp/help/customer/display.html/ref=footer_cou?ie=UTF8&nodeId=508088) and you agree to be bound by them, with the following additional conditions:\n\nIn addition to the license rights granted under the Conditions of Use, Amazon or its content providers grant you a limited, non-exclusive, non-transferable, non-sublicensable, revocable license to access and use the Reviews Corpus for purposes of academic research. You may not resell, republish, or make any commercial use of the Reviews Corpus or its contents, including use of the Reviews Corpus for commercial research, such as research related to a funding or consultancy contract, internship, or other relationship in which the results are provided for a fee or delivered to a for-profit organization. You may not (a) link or associate content in the Reviews Corpus with any personal information (including Amazon customer accounts), or (b) attempt to determine the identity of the author of any content in the Reviews Corpus. If you violate any of the foregoing conditions, your license to access and use the Reviews Corpus will automatically terminate without prejudice to any of the other rights or remedies Amazon may have.\n", "features": {"review_id": {"dtype": "string", "id": null, "_type": "Value"}, "product_id": {"dtype": "string", "id": null, "_type": "Value"}, "reviewer_id": {"dtype": "string", "id": null, "_type": "Value"}, "stars": {"dtype": "int32", "id": null, "_type": "Value"}, "review_body": {"dtype": "string", "id": null, "_type": "Value"}, "review_title": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "product_category": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "amazon_reviews_multi", "config_name": "en", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 58601089, "num_examples": 200000, "dataset_name": "amazon_reviews_multi"}, "validation": {"name": "validation", "num_bytes": 1474672, "num_examples": 5000, "dataset_name": "amazon_reviews_multi"}, "test": {"name": "test", "num_bytes": 1460565, "num_examples": 5000, "dataset_name": "amazon_reviews_multi"}}, "download_checksums": {"https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_en_train.json": {"num_bytes": 81989414, "checksum": "8a3265e94b6dd365811f1d1e8812c4ccb999dae4044eebe2c529c2be9519bab9"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/dev/dataset_en_dev.json": {"num_bytes": 2059600, "checksum": "a5fdeedc17532b160c95e61a6c87ba5458552a96781415690d770b753114f909"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/test/dataset_en_test.json": {"num_bytes": 2045098, "checksum": "eb1d41c7ce0da2556daac34d6a0c7f28c3ffe268f1d24c60fea5ae8950448ffc"}}, "download_size": 86094112, "post_processing_size": null, "dataset_size": 61536326, "size_in_bytes": 147630438}, "es": {"description": "We provide an Amazon product reviews dataset for multilingual text classification. The dataset contains reviews in English, Japanese, German, French, Chinese and Spanish, collected between November 1, 2015 and November 1, 2019. Each record in the dataset contains the review text, the review title, the star rating, an anonymized reviewer ID, an anonymized product ID and the coarse-grained product category (e.g. \u2018books\u2019, \u2018appliances\u2019, etc.) The corpus is balanced across stars, so each star rating constitutes 20% of the reviews in each language.\n\nFor each language, there are 200,000, 5,000 and 5,000 reviews in the training, development and test sets respectively. The maximum number of reviews per reviewer is 20 and the maximum number of reviews per product is 20. All reviews are truncated after 2,000 characters, and all reviews are at least 20 characters long.\n\nNote that the language of a review does not necessarily match the language of its marketplace (e.g. reviews from amazon.de are primarily written in German, but could also be written in English, etc.). For this reason, we applied a language detection algorithm based on the work in Bojanowski et al. (2017) to determine the language of the review text and we removed reviews that were not written in the expected language.\n", "citation": "@inproceedings{marc_reviews,\n title={The Multilingual Amazon Reviews Corpus},\n author={Keung, Phillip and Lu, Yichao and Szarvas, Gy\u00f6rgy and Smith, Noah A.},\n booktitle={Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing},\n year={2020}\n}\n", "homepage": "https://registry.opendata.aws/amazon-reviews-ml/", "license": "By accessing the Multilingual Amazon Reviews Corpus (\"Reviews Corpus\"), you agree that the Reviews Corpus is an Amazon Service subject to the Amazon.com Conditions of Use (https://www.amazon.com/gp/help/customer/display.html/ref=footer_cou?ie=UTF8&nodeId=508088) and you agree to be bound by them, with the following additional conditions:\n\nIn addition to the license rights granted under the Conditions of Use, Amazon or its content providers grant you a limited, non-exclusive, non-transferable, non-sublicensable, revocable license to access and use the Reviews Corpus for purposes of academic research. You may not resell, republish, or make any commercial use of the Reviews Corpus or its contents, including use of the Reviews Corpus for commercial research, such as research related to a funding or consultancy contract, internship, or other relationship in which the results are provided for a fee or delivered to a for-profit organization. You may not (a) link or associate content in the Reviews Corpus with any personal information (including Amazon customer accounts), or (b) attempt to determine the identity of the author of any content in the Reviews Corpus. If you violate any of the foregoing conditions, your license to access and use the Reviews Corpus will automatically terminate without prejudice to any of the other rights or remedies Amazon may have.\n", "features": {"review_id": {"dtype": "string", "id": null, "_type": "Value"}, "product_id": {"dtype": "string", "id": null, "_type": "Value"}, "reviewer_id": {"dtype": "string", "id": null, "_type": "Value"}, "stars": {"dtype": "int32", "id": null, "_type": "Value"}, "review_body": {"dtype": "string", "id": null, "_type": "Value"}, "review_title": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "product_category": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "amazon_reviews_multi", "config_name": "es", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 52375658, "num_examples": 200000, "dataset_name": "amazon_reviews_multi"}, "validation": {"name": "validation", "num_bytes": 1303958, "num_examples": 5000, "dataset_name": "amazon_reviews_multi"}, "test": {"name": "test", "num_bytes": 1312347, "num_examples": 5000, "dataset_name": "amazon_reviews_multi"}}, "download_checksums": {"https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_es_train.json": {"num_bytes": 77475023, "checksum": "e5bd5f4bc2473041126f3efaf3b0069cdeaefc0f973bf92c6da3b345fad192f1"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/dev/dataset_es_dev.json": {"num_bytes": 1930836, "checksum": "066256efe2896859cd218b79bb32eadf9fc826aa8c023145a7fdc65374d0ab22"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/test/dataset_es_test.json": {"num_bytes": 1939602, "checksum": "5c4b77f18682b659e34bc12ac321e33e37600d30d9a2751c941f7cf3c6f62ac3"}}, "download_size": 81345461, "post_processing_size": null, "dataset_size": 54991963, "size_in_bytes": 136337424}, "fr": {"description": "We provide an Amazon product reviews dataset for multilingual text classification. The dataset contains reviews in English, Japanese, German, French, Chinese and Spanish, collected between November 1, 2015 and November 1, 2019. Each record in the dataset contains the review text, the review title, the star rating, an anonymized reviewer ID, an anonymized product ID and the coarse-grained product category (e.g. \u2018books\u2019, \u2018appliances\u2019, etc.) The corpus is balanced across stars, so each star rating constitutes 20% of the reviews in each language.\n\nFor each language, there are 200,000, 5,000 and 5,000 reviews in the training, development and test sets respectively. The maximum number of reviews per reviewer is 20 and the maximum number of reviews per product is 20. All reviews are truncated after 2,000 characters, and all reviews are at least 20 characters long.\n\nNote that the language of a review does not necessarily match the language of its marketplace (e.g. reviews from amazon.de are primarily written in German, but could also be written in English, etc.). For this reason, we applied a language detection algorithm based on the work in Bojanowski et al. (2017) to determine the language of the review text and we removed reviews that were not written in the expected language.\n", "citation": "@inproceedings{marc_reviews,\n title={The Multilingual Amazon Reviews Corpus},\n author={Keung, Phillip and Lu, Yichao and Szarvas, Gy\u00f6rgy and Smith, Noah A.},\n booktitle={Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing},\n year={2020}\n}\n", "homepage": "https://registry.opendata.aws/amazon-reviews-ml/", "license": "By accessing the Multilingual Amazon Reviews Corpus (\"Reviews Corpus\"), you agree that the Reviews Corpus is an Amazon Service subject to the Amazon.com Conditions of Use (https://www.amazon.com/gp/help/customer/display.html/ref=footer_cou?ie=UTF8&nodeId=508088) and you agree to be bound by them, with the following additional conditions:\n\nIn addition to the license rights granted under the Conditions of Use, Amazon or its content providers grant you a limited, non-exclusive, non-transferable, non-sublicensable, revocable license to access and use the Reviews Corpus for purposes of academic research. You may not resell, republish, or make any commercial use of the Reviews Corpus or its contents, including use of the Reviews Corpus for commercial research, such as research related to a funding or consultancy contract, internship, or other relationship in which the results are provided for a fee or delivered to a for-profit organization. You may not (a) link or associate content in the Reviews Corpus with any personal information (including Amazon customer accounts), or (b) attempt to determine the identity of the author of any content in the Reviews Corpus. If you violate any of the foregoing conditions, your license to access and use the Reviews Corpus will automatically terminate without prejudice to any of the other rights or remedies Amazon may have.\n", "features": {"review_id": {"dtype": "string", "id": null, "_type": "Value"}, "product_id": {"dtype": "string", "id": null, "_type": "Value"}, "reviewer_id": {"dtype": "string", "id": null, "_type": "Value"}, "stars": {"dtype": "int32", "id": null, "_type": "Value"}, "review_body": {"dtype": "string", "id": null, "_type": "Value"}, "review_title": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "product_category": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "amazon_reviews_multi", "config_name": "fr", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 54593565, "num_examples": 200000, "dataset_name": "amazon_reviews_multi"}, "validation": {"name": "validation", "num_bytes": 1340763, "num_examples": 5000, "dataset_name": "amazon_reviews_multi"}, "test": {"name": "test", "num_bytes": 1364510, "num_examples": 5000, "dataset_name": "amazon_reviews_multi"}}, "download_checksums": {"https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_fr_train.json": {"num_bytes": 81853486, "checksum": "b6811b844f4889eedafa663c66d8f91454ed077ac0bf95242740bb60efcd0a53"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/dev/dataset_fr_dev.json": {"num_bytes": 2019337, "checksum": "6ec4446b78afcd3807af2cca642cbfd25aaf4cbf48ba60f3dbc2de8e7df91634"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/test/dataset_fr_test.json": {"num_bytes": 2044470, "checksum": "4728c7eea42b22d5b09a3c8d9846cfbbe8e5a21d05f250114010d466c23eb55e"}}, "download_size": 85917293, "post_processing_size": null, "dataset_size": 57298838, "size_in_bytes": 143216131}, "ja": {"description": "We provide an Amazon product reviews dataset for multilingual text classification. The dataset contains reviews in English, Japanese, German, French, Chinese and Spanish, collected between November 1, 2015 and November 1, 2019. Each record in the dataset contains the review text, the review title, the star rating, an anonymized reviewer ID, an anonymized product ID and the coarse-grained product category (e.g. \u2018books\u2019, \u2018appliances\u2019, etc.) The corpus is balanced across stars, so each star rating constitutes 20% of the reviews in each language.\n\nFor each language, there are 200,000, 5,000 and 5,000 reviews in the training, development and test sets respectively. The maximum number of reviews per reviewer is 20 and the maximum number of reviews per product is 20. All reviews are truncated after 2,000 characters, and all reviews are at least 20 characters long.\n\nNote that the language of a review does not necessarily match the language of its marketplace (e.g. reviews from amazon.de are primarily written in German, but could also be written in English, etc.). For this reason, we applied a language detection algorithm based on the work in Bojanowski et al. (2017) to determine the language of the review text and we removed reviews that were not written in the expected language.\n", "citation": "@inproceedings{marc_reviews,\n title={The Multilingual Amazon Reviews Corpus},\n author={Keung, Phillip and Lu, Yichao and Szarvas, Gy\u00f6rgy and Smith, Noah A.},\n booktitle={Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing},\n year={2020}\n}\n", "homepage": "https://registry.opendata.aws/amazon-reviews-ml/", "license": "By accessing the Multilingual Amazon Reviews Corpus (\"Reviews Corpus\"), you agree that the Reviews Corpus is an Amazon Service subject to the Amazon.com Conditions of Use (https://www.amazon.com/gp/help/customer/display.html/ref=footer_cou?ie=UTF8&nodeId=508088) and you agree to be bound by them, with the following additional conditions:\n\nIn addition to the license rights granted under the Conditions of Use, Amazon or its content providers grant you a limited, non-exclusive, non-transferable, non-sublicensable, revocable license to access and use the Reviews Corpus for purposes of academic research. You may not resell, republish, or make any commercial use of the Reviews Corpus or its contents, including use of the Reviews Corpus for commercial research, such as research related to a funding or consultancy contract, internship, or other relationship in which the results are provided for a fee or delivered to a for-profit organization. You may not (a) link or associate content in the Reviews Corpus with any personal information (including Amazon customer accounts), or (b) attempt to determine the identity of the author of any content in the Reviews Corpus. If you violate any of the foregoing conditions, your license to access and use the Reviews Corpus will automatically terminate without prejudice to any of the other rights or remedies Amazon may have.\n", "features": {"review_id": {"dtype": "string", "id": null, "_type": "Value"}, "product_id": {"dtype": "string", "id": null, "_type": "Value"}, "reviewer_id": {"dtype": "string", "id": null, "_type": "Value"}, "stars": {"dtype": "int32", "id": null, "_type": "Value"}, "review_body": {"dtype": "string", "id": null, "_type": "Value"}, "review_title": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "product_category": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "amazon_reviews_multi", "config_name": "ja", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 82401390, "num_examples": 200000, "dataset_name": "amazon_reviews_multi"}, "validation": {"name": "validation", "num_bytes": 2035391, "num_examples": 5000, "dataset_name": "amazon_reviews_multi"}, "test": {"name": "test", "num_bytes": 2048048, "num_examples": 5000, "dataset_name": "amazon_reviews_multi"}}, "download_checksums": {"https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_ja_train.json": {"num_bytes": 169377614, "checksum": "3f7a5f7ccafc14a5a80cdda1ad21c40181092561703281b1ab64d8beb28581f0"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/dev/dataset_ja_dev.json": {"num_bytes": 4185487, "checksum": "482e893e1a41f437874566eaafdfcb597727550cc685801c0a9a3b594364a2c0"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/test/dataset_ja_test.json": {"num_bytes": 4210682, "checksum": "09e0e1dc433cd4f8dfd6385462eb739e2bddefdd0e52717c6f890938f751be1f"}}, "download_size": 177773783, "post_processing_size": null, "dataset_size": 86484829, "size_in_bytes": 264258612}, "zh": {"description": "We provide an Amazon product reviews dataset for multilingual text classification. The dataset contains reviews in English, Japanese, German, French, Chinese and Spanish, collected between November 1, 2015 and November 1, 2019. Each record in the dataset contains the review text, the review title, the star rating, an anonymized reviewer ID, an anonymized product ID and the coarse-grained product category (e.g. \u2018books\u2019, \u2018appliances\u2019, etc.) The corpus is balanced across stars, so each star rating constitutes 20% of the reviews in each language.\n\nFor each language, there are 200,000, 5,000 and 5,000 reviews in the training, development and test sets respectively. The maximum number of reviews per reviewer is 20 and the maximum number of reviews per product is 20. All reviews are truncated after 2,000 characters, and all reviews are at least 20 characters long.\n\nNote that the language of a review does not necessarily match the language of its marketplace (e.g. reviews from amazon.de are primarily written in German, but could also be written in English, etc.). For this reason, we applied a language detection algorithm based on the work in Bojanowski et al. (2017) to determine the language of the review text and we removed reviews that were not written in the expected language.\n", "citation": "@inproceedings{marc_reviews,\n title={The Multilingual Amazon Reviews Corpus},\n author={Keung, Phillip and Lu, Yichao and Szarvas, Gy\u00f6rgy and Smith, Noah A.},\n booktitle={Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing},\n year={2020}\n}\n", "homepage": "https://registry.opendata.aws/amazon-reviews-ml/", "license": "By accessing the Multilingual Amazon Reviews Corpus (\"Reviews Corpus\"), you agree that the Reviews Corpus is an Amazon Service subject to the Amazon.com Conditions of Use (https://www.amazon.com/gp/help/customer/display.html/ref=footer_cou?ie=UTF8&nodeId=508088) and you agree to be bound by them, with the following additional conditions:\n\nIn addition to the license rights granted under the Conditions of Use, Amazon or its content providers grant you a limited, non-exclusive, non-transferable, non-sublicensable, revocable license to access and use the Reviews Corpus for purposes of academic research. You may not resell, republish, or make any commercial use of the Reviews Corpus or its contents, including use of the Reviews Corpus for commercial research, such as research related to a funding or consultancy contract, internship, or other relationship in which the results are provided for a fee or delivered to a for-profit organization. You may not (a) link or associate content in the Reviews Corpus with any personal information (including Amazon customer accounts), or (b) attempt to determine the identity of the author of any content in the Reviews Corpus. If you violate any of the foregoing conditions, your license to access and use the Reviews Corpus will automatically terminate without prejudice to any of the other rights or remedies Amazon may have.\n", "features": {"review_id": {"dtype": "string", "id": null, "_type": "Value"}, "product_id": {"dtype": "string", "id": null, "_type": "Value"}, "reviewer_id": {"dtype": "string", "id": null, "_type": "Value"}, "stars": {"dtype": "int32", "id": null, "_type": "Value"}, "review_body": {"dtype": "string", "id": null, "_type": "Value"}, "review_title": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "product_category": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "amazon_reviews_multi", "config_name": "zh", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 51947668, "num_examples": 200000, "dataset_name": "amazon_reviews_multi"}, "validation": {"name": "validation", "num_bytes": 1287106, "num_examples": 5000, "dataset_name": "amazon_reviews_multi"}, "test": {"name": "test", "num_bytes": 1302711, "num_examples": 5000, "dataset_name": "amazon_reviews_multi"}}, "download_checksums": {"https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_zh_train.json": {"num_bytes": 108954151, "checksum": "61bc8cc2470b2fd608f7292e2a7c30b487cc92857987048288233932c6af7c4d"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/dev/dataset_zh_dev.json": {"num_bytes": 2701152, "checksum": "182903bb284abd81a25b7f03b1c30eb5c4391715defcbe7badd14ccb7e876dd1"}, "https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/test/dataset_zh_test.json": {"num_bytes": 2731944, "checksum": "6c88bc31ce9fc54fa78c3df84322634620746a5e097fd127b7adce2fd1bcafa5"}}, "download_size": 114387247, "post_processing_size": null, "dataset_size": 54537485, "size_in_bytes": 168924732}}
 
 
de/amazon_reviews_multi-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6923cc1e839b313ddc9a0a1df9f0b5203b6eee74ec7d9afb417bdbb7b04eca8
3
+ size 923137
de/amazon_reviews_multi-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30400701046e2d98076c407571256b926c23c392583e55e6660a1b97e300699e
3
+ size 36712168
de/amazon_reviews_multi-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73b3898e4b21752c407e6152792ee7f1d3fedeca629c3c4313e45792dbe9c171
3
+ size 916806
en/amazon_reviews_multi-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d161736cad80bba280d75fcb4d3b5b7c6123ddfc63803d7b6f5d4c808b380a88
3
+ size 829776
en/amazon_reviews_multi-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d639f6dc11fd55a6b20b17b00663db62420f2a2f1f7687ee0f95fec16487eb0e
3
+ size 33371224
en/amazon_reviews_multi-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d0efd82ae7eaa0a05c48d05a39d3775009484064f52eb1de51204c48af16811
3
+ size 840161
es/amazon_reviews_multi-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3be4b1d0d3e347e7e0c8ad563b3ad19734905b8027ec743d2cec4620468bb43
3
+ size 732881
es/amazon_reviews_multi-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c49d703e7f8740f5229b269907f83c69027d1aae56232cb25f2dd0b2257acc8d
3
+ size 29254375
es/amazon_reviews_multi-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61765274ef4fbd7488385777768dea34dd2728f71e552f4241268ba292bea201
3
+ size 730067
fr/amazon_reviews_multi-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0649f892cb8964030dd61063c94aac1ed89129b94cbd4aa6fe6e37460693bbca
3
+ size 755702
fr/amazon_reviews_multi-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f239c8f3292224cf0fe9235813b7900b0b106bbd154c05470c3af37459275940
3
+ size 30284437
fr/amazon_reviews_multi-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb6612767476ab446eb87f863d86aebbb0b22dfb793ad1505e863260a8c803af
3
+ size 744084
ja/amazon_reviews_multi-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6f9415c8f82fe0f5220c195caa4f6eb0916f1bca2f33c4e39757290674cac9e
3
+ size 1136350
ja/amazon_reviews_multi-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2254735f3478c772ff0d84852423647b7529d46c9dce9504a06eed9c1fa916ea
3
+ size 45640171
ja/amazon_reviews_multi-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8386e1a89ceec710b892fa3e7ff317b44ad3133561e5ee20a44a618f3e568542
3
+ size 1124027
zh/amazon_reviews_multi-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c948d3230ddb7b49a5b3b231346662d9202277ffe50560df0fff6bac350f4ac5
3
+ size 797575
zh/amazon_reviews_multi-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc3bb1dafdbeaa83235a61673129742af732173147d6aca421faa0fcadd52baa
3
+ size 31686160
zh/amazon_reviews_multi-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06bcf3bc692c30e3b4517cff95d43d2d005e03532f57a7a4f88e6adafdcc5454
3
+ size 782389