hyp1231 commited on
Commit
4e1737e
1 Parent(s): 08bf6da

Add scripts for all benchmark files

Browse files
Files changed (1) hide show
  1. Amazon-Review-2023.py +356 -71
Amazon-Review-2023.py CHANGED
@@ -34,19 +34,44 @@ class RawReviewAmazonReview2023Config(datasets.BuilderConfig):
34
  self.data_dir = f'raw/review_categories/{self.domain}.jsonl'
35
 
36
 
37
- class BenchmarkRatingOnlyAmazonReview2023Config(datasets.BuilderConfig):
38
  def __init__(self, **kwargs):
39
- super(BenchmarkRatingOnlyAmazonReview2023Config, self).__init__(**kwargs)
40
 
41
  self.suffix = 'csv'
42
  self.kcore = self.name[:len('0core')]
43
  self.domain = self.name[len(f'0core_rating_only_'):]
44
  self.description = \
45
- f'This is the preprocessed benchmark in domain: {self.domain}.' \
46
  f'The preprocessing includes {self.kcore} filtering and <user, item> interaction deduplication'
47
  self.data_dir = f'benchmark/{self.kcore}/rating_only/{self.domain}.csv'
48
 
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  class AmazonReview2023(datasets.GeneratorBasedBuilder):
51
  BUILDER_CONFIGS = [
52
  # Raw item metadata
@@ -120,69 +145,325 @@ class AmazonReview2023(datasets.GeneratorBasedBuilder):
120
  RawReviewAmazonReview2023Config(name='raw_review_Appliances'),
121
  RawReviewAmazonReview2023Config(name='raw_review_Movies_and_TV'),
122
  # Rating only - 0core
123
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_All_Beauty'),
124
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Toys_and_Games'),
125
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Cell_Phones_and_Accessories'),
126
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Industrial_and_Scientific'),
127
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Gift_Cards'),
128
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Musical_Instruments'),
129
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Electronics'),
130
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Handmade_Products'),
131
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Arts_Crafts_and_Sewing'),
132
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Baby_Products'),
133
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Health_and_Household'),
134
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Office_Products'),
135
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Digital_Music'),
136
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Grocery_and_Gourmet_Food'),
137
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Sports_and_Outdoors'),
138
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Home_and_Kitchen'),
139
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Subscription_Boxes'),
140
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Tools_and_Home_Improvement'),
141
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Pet_Supplies'),
142
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Video_Games'),
143
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Kindle_Store'),
144
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Clothing_Shoes_and_Jewelry'),
145
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Patio_Lawn_and_Garden'),
146
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Unknown'),
147
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Books'),
148
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Automotive'),
149
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_CDs_and_Vinyl'),
150
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Beauty_and_Personal_Care'),
151
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Amazon_Fashion'),
152
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Magazine_Subscriptions'),
153
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Software'),
154
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Health_and_Personal_Care'),
155
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Appliances'),
156
- BenchmarkRatingOnlyAmazonReview2023Config(name='0core_rating_only_Movies_and_TV'),
157
  # Rating only - 5core
158
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_All_Beauty'),
159
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Toys_and_Games'),
160
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Cell_Phones_and_Accessories'),
161
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Industrial_and_Scientific'),
162
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Gift_Cards'),
163
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Musical_Instruments'),
164
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Electronics'),
165
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Arts_Crafts_and_Sewing'),
166
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Baby_Products'),
167
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Health_and_Household'),
168
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Office_Products'),
169
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Grocery_and_Gourmet_Food'),
170
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Sports_and_Outdoors'),
171
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Home_and_Kitchen'),
172
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Tools_and_Home_Improvement'),
173
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Pet_Supplies'),
174
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Video_Games'),
175
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Kindle_Store'),
176
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Clothing_Shoes_and_Jewelry'),
177
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Patio_Lawn_and_Garden'),
178
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Unknown'),
179
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Books'),
180
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Automotive'),
181
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_CDs_and_Vinyl'),
182
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Beauty_and_Personal_Care'),
183
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Magazine_Subscriptions'),
184
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Software'),
185
- BenchmarkRatingOnlyAmazonReview2023Config(name='5core_rating_only_Movies_and_TV'),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  ]
187
 
188
  def _info(self):
@@ -226,12 +507,16 @@ class AmazonReview2023(datasets.GeneratorBasedBuilder):
226
 
227
  def _split_generators(self, dl_manager):
228
  dl_dir = dl_manager.download_and_extract(self.config.data_dir)
229
- return [
230
- datasets.SplitGenerator(
231
- name='full',
232
- gen_kwargs={"filepath": dl_dir}
233
- )
234
- ]
 
 
 
 
235
 
236
  def _generate_examples(self, filepath):
237
  with open(filepath, 'r', encoding='utf-8') as file:
 
34
  self.data_dir = f'raw/review_categories/{self.domain}.jsonl'
35
 
36
 
37
+ class RatingOnlyAmazonReview2023Config(datasets.BuilderConfig):
38
  def __init__(self, **kwargs):
39
+ super(RatingOnlyAmazonReview2023Config, self).__init__(**kwargs)
40
 
41
  self.suffix = 'csv'
42
  self.kcore = self.name[:len('0core')]
43
  self.domain = self.name[len(f'0core_rating_only_'):]
44
  self.description = \
45
+ f'This is the preprocessed file that only contains <user, item, rating, timestamp> in domain: {self.domain}.\n' \
46
  f'The preprocessing includes {self.kcore} filtering and <user, item> interaction deduplication'
47
  self.data_dir = f'benchmark/{self.kcore}/rating_only/{self.domain}.csv'
48
 
49
 
50
+ class BenchmarkAmazonReview2023Config(datasets.BuilderConfig):
51
+ def __init__(self, **kwargs):
52
+ super(BenchmarkAmazonReview2023Config, self).__init__(**kwargs)
53
+
54
+ self.suffix = 'csv'
55
+ self.split = None
56
+ for potential_split in ['last_out_w_his', 'timestamp_w_his', 'last_out', 'timestamp']:
57
+ if potential_split in self.name:
58
+ self.split = potential_split
59
+ break
60
+ if self.split is None:
61
+ ValueError(f'Cannot find valid split for {self.name}')
62
+ self.kcore = self.name[:len('0core')]
63
+ self.domain = self.name[len(f'0core_{self.split}_'):]
64
+ self.description = \
65
+ f'This is the preprocessed benchmark in domain: {self.domain}.' \
66
+ f'The preprocessing includes {self.kcore} filtering, <user, item> interaction deduplication, ' \
67
+ f'as well as split by {self.split}.'
68
+ self.data_dir = {
69
+ 'train': f'benchmark/{self.kcore}/{self.split}/{self.domain}.train.csv',
70
+ 'valid': f'benchmark/{self.kcore}/{self.split}/{self.domain}.valid.csv',
71
+ 'test': f'benchmark/{self.kcore}/{self.split}/{self.domain}.test.csv'
72
+ }
73
+
74
+
75
  class AmazonReview2023(datasets.GeneratorBasedBuilder):
76
  BUILDER_CONFIGS = [
77
  # Raw item metadata
 
145
  RawReviewAmazonReview2023Config(name='raw_review_Appliances'),
146
  RawReviewAmazonReview2023Config(name='raw_review_Movies_and_TV'),
147
  # Rating only - 0core
148
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_All_Beauty'),
149
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Toys_and_Games'),
150
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Cell_Phones_and_Accessories'),
151
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Industrial_and_Scientific'),
152
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Gift_Cards'),
153
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Musical_Instruments'),
154
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Electronics'),
155
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Handmade_Products'),
156
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Arts_Crafts_and_Sewing'),
157
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Baby_Products'),
158
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Health_and_Household'),
159
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Office_Products'),
160
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Digital_Music'),
161
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Grocery_and_Gourmet_Food'),
162
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Sports_and_Outdoors'),
163
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Home_and_Kitchen'),
164
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Subscription_Boxes'),
165
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Tools_and_Home_Improvement'),
166
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Pet_Supplies'),
167
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Video_Games'),
168
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Kindle_Store'),
169
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Clothing_Shoes_and_Jewelry'),
170
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Patio_Lawn_and_Garden'),
171
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Unknown'),
172
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Books'),
173
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Automotive'),
174
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_CDs_and_Vinyl'),
175
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Beauty_and_Personal_Care'),
176
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Amazon_Fashion'),
177
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Magazine_Subscriptions'),
178
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Software'),
179
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Health_and_Personal_Care'),
180
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Appliances'),
181
+ RatingOnlyAmazonReview2023Config(name='0core_rating_only_Movies_and_TV'),
182
  # Rating only - 5core
183
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_All_Beauty'),
184
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Toys_and_Games'),
185
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Cell_Phones_and_Accessories'),
186
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Industrial_and_Scientific'),
187
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Gift_Cards'),
188
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Musical_Instruments'),
189
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Electronics'),
190
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Arts_Crafts_and_Sewing'),
191
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Baby_Products'),
192
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Health_and_Household'),
193
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Office_Products'),
194
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Grocery_and_Gourmet_Food'),
195
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Sports_and_Outdoors'),
196
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Home_and_Kitchen'),
197
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Tools_and_Home_Improvement'),
198
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Pet_Supplies'),
199
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Video_Games'),
200
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Kindle_Store'),
201
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Clothing_Shoes_and_Jewelry'),
202
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Patio_Lawn_and_Garden'),
203
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Unknown'),
204
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Books'),
205
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Automotive'),
206
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_CDs_and_Vinyl'),
207
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Beauty_and_Personal_Care'),
208
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Magazine_Subscriptions'),
209
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Software'),
210
+ RatingOnlyAmazonReview2023Config(name='5core_rating_only_Movies_and_TV'),
211
+ # Benchmark - last_out - 0core
212
+ BenchmarkAmazonReview2023Config(name='0core_last_out_All_Beauty'),
213
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Toys_and_Games'),
214
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Cell_Phones_and_Accessories'),
215
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Industrial_and_Scientific'),
216
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Gift_Cards'),
217
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Musical_Instruments'),
218
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Electronics'),
219
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Handmade_Products'),
220
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Arts_Crafts_and_Sewing'),
221
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Baby_Products'),
222
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Health_and_Household'),
223
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Office_Products'),
224
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Digital_Music'),
225
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Grocery_and_Gourmet_Food'),
226
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Sports_and_Outdoors'),
227
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Home_and_Kitchen'),
228
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Subscription_Boxes'),
229
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Tools_and_Home_Improvement'),
230
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Pet_Supplies'),
231
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Video_Games'),
232
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Kindle_Store'),
233
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Clothing_Shoes_and_Jewelry'),
234
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Patio_Lawn_and_Garden'),
235
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Unknown'),
236
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Books'),
237
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Automotive'),
238
+ BenchmarkAmazonReview2023Config(name='0core_last_out_CDs_and_Vinyl'),
239
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Beauty_and_Personal_Care'),
240
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Amazon_Fashion'),
241
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Magazine_Subscriptions'),
242
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Software'),
243
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Health_and_Personal_Care'),
244
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Appliances'),
245
+ BenchmarkAmazonReview2023Config(name='0core_last_out_Movies_and_TV'),
246
+ # Benchmark - last_out - 5core
247
+ BenchmarkAmazonReview2023Config(name='5core_last_out_All_Beauty'),
248
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Toys_and_Games'),
249
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Cell_Phones_and_Accessories'),
250
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Industrial_and_Scientific'),
251
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Gift_Cards'),
252
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Musical_Instruments'),
253
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Electronics'),
254
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Arts_Crafts_and_Sewing'),
255
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Baby_Products'),
256
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Health_and_Household'),
257
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Office_Products'),
258
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Grocery_and_Gourmet_Food'),
259
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Sports_and_Outdoors'),
260
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Home_and_Kitchen'),
261
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Tools_and_Home_Improvement'),
262
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Pet_Supplies'),
263
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Video_Games'),
264
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Kindle_Store'),
265
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Clothing_Shoes_and_Jewelry'),
266
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Patio_Lawn_and_Garden'),
267
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Unknown'),
268
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Books'),
269
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Automotive'),
270
+ BenchmarkAmazonReview2023Config(name='5core_last_out_CDs_and_Vinyl'),
271
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Beauty_and_Personal_Care'),
272
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Magazine_Subscriptions'),
273
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Software'),
274
+ BenchmarkAmazonReview2023Config(name='5core_last_out_Movies_and_TV'),
275
+ # Benchmark - last_out_w_his - 0core
276
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_All_Beauty'),
277
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Toys_and_Games'),
278
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Cell_Phones_and_Accessories'),
279
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Industrial_and_Scientific'),
280
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Gift_Cards'),
281
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Musical_Instruments'),
282
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Electronics'),
283
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Handmade_Products'),
284
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Arts_Crafts_and_Sewing'),
285
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Baby_Products'),
286
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Health_and_Household'),
287
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Office_Products'),
288
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Digital_Music'),
289
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Grocery_and_Gourmet_Food'),
290
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Sports_and_Outdoors'),
291
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Home_and_Kitchen'),
292
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Subscription_Boxes'),
293
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Tools_and_Home_Improvement'),
294
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Pet_Supplies'),
295
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Video_Games'),
296
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Kindle_Store'),
297
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Clothing_Shoes_and_Jewelry'),
298
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Patio_Lawn_and_Garden'),
299
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Unknown'),
300
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Books'),
301
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Automotive'),
302
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_CDs_and_Vinyl'),
303
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Beauty_and_Personal_Care'),
304
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Amazon_Fashion'),
305
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Magazine_Subscriptions'),
306
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Software'),
307
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Health_and_Personal_Care'),
308
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Appliances'),
309
+ BenchmarkAmazonReview2023Config(name='0core_last_out_w_his_Movies_and_TV'),
310
+ # Benchmark - last_out_w_his - 5core
311
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_All_Beauty'),
312
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Toys_and_Games'),
313
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Cell_Phones_and_Accessories'),
314
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Industrial_and_Scientific'),
315
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Gift_Cards'),
316
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Musical_Instruments'),
317
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Electronics'),
318
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Arts_Crafts_and_Sewing'),
319
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Baby_Products'),
320
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Health_and_Household'),
321
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Office_Products'),
322
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Grocery_and_Gourmet_Food'),
323
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Sports_and_Outdoors'),
324
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Home_and_Kitchen'),
325
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Tools_and_Home_Improvement'),
326
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Pet_Supplies'),
327
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Video_Games'),
328
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Kindle_Store'),
329
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Clothing_Shoes_and_Jewelry'),
330
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Patio_Lawn_and_Garden'),
331
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Unknown'),
332
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Books'),
333
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Automotive'),
334
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_CDs_and_Vinyl'),
335
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Beauty_and_Personal_Care'),
336
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Magazine_Subscriptions'),
337
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Software'),
338
+ BenchmarkAmazonReview2023Config(name='5core_last_out_w_his_Movies_and_TV'),
339
+ # Benchmark - timestamp - 0core
340
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_All_Beauty'),
341
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Toys_and_Games'),
342
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Cell_Phones_and_Accessories'),
343
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Industrial_and_Scientific'),
344
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Gift_Cards'),
345
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Musical_Instruments'),
346
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Electronics'),
347
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Handmade_Products'),
348
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Arts_Crafts_and_Sewing'),
349
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Baby_Products'),
350
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Health_and_Household'),
351
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Office_Products'),
352
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Digital_Music'),
353
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Grocery_and_Gourmet_Food'),
354
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Sports_and_Outdoors'),
355
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Home_and_Kitchen'),
356
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Subscription_Boxes'),
357
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Tools_and_Home_Improvement'),
358
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Pet_Supplies'),
359
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Video_Games'),
360
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Kindle_Store'),
361
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Clothing_Shoes_and_Jewelry'),
362
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Patio_Lawn_and_Garden'),
363
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Unknown'),
364
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Books'),
365
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Automotive'),
366
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_CDs_and_Vinyl'),
367
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Beauty_and_Personal_Care'),
368
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Amazon_Fashion'),
369
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Magazine_Subscriptions'),
370
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Software'),
371
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Health_and_Personal_Care'),
372
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Appliances'),
373
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_Movies_and_TV'),
374
+ # Benchmark - timestamp - 5core
375
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_All_Beauty'),
376
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Toys_and_Games'),
377
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Cell_Phones_and_Accessories'),
378
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Industrial_and_Scientific'),
379
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Gift_Cards'),
380
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Musical_Instruments'),
381
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Electronics'),
382
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Arts_Crafts_and_Sewing'),
383
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Baby_Products'),
384
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Health_and_Household'),
385
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Office_Products'),
386
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Grocery_and_Gourmet_Food'),
387
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Sports_and_Outdoors'),
388
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Home_and_Kitchen'),
389
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Tools_and_Home_Improvement'),
390
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Pet_Supplies'),
391
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Video_Games'),
392
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Kindle_Store'),
393
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Clothing_Shoes_and_Jewelry'),
394
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Patio_Lawn_and_Garden'),
395
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Unknown'),
396
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Books'),
397
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Automotive'),
398
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_CDs_and_Vinyl'),
399
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Beauty_and_Personal_Care'),
400
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Magazine_Subscriptions'),
401
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Software'),
402
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_Movies_and_TV'),
403
+ # Benchmark - timestamp_w_his - 0core
404
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_All_Beauty'),
405
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Toys_and_Games'),
406
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Cell_Phones_and_Accessories'),
407
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Industrial_and_Scientific'),
408
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Gift_Cards'),
409
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Musical_Instruments'),
410
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Electronics'),
411
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Handmade_Products'),
412
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Arts_Crafts_and_Sewing'),
413
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Baby_Products'),
414
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Health_and_Household'),
415
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Office_Products'),
416
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Digital_Music'),
417
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Grocery_and_Gourmet_Food'),
418
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Sports_and_Outdoors'),
419
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Home_and_Kitchen'),
420
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Subscription_Boxes'),
421
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Tools_and_Home_Improvement'),
422
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Pet_Supplies'),
423
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Video_Games'),
424
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Kindle_Store'),
425
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Clothing_Shoes_and_Jewelry'),
426
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Patio_Lawn_and_Garden'),
427
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Unknown'),
428
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Books'),
429
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Automotive'),
430
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_CDs_and_Vinyl'),
431
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Beauty_and_Personal_Care'),
432
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Amazon_Fashion'),
433
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Magazine_Subscriptions'),
434
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Software'),
435
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Health_and_Personal_Care'),
436
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Appliances'),
437
+ BenchmarkAmazonReview2023Config(name='0core_timestamp_w_his_Movies_and_TV'),
438
+ # Benchmark - timestamp_w_his - 5core
439
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_All_Beauty'),
440
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Toys_and_Games'),
441
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Cell_Phones_and_Accessories'),
442
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Industrial_and_Scientific'),
443
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Gift_Cards'),
444
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Musical_Instruments'),
445
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Electronics'),
446
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Arts_Crafts_and_Sewing'),
447
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Baby_Products'),
448
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Health_and_Household'),
449
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Office_Products'),
450
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Grocery_and_Gourmet_Food'),
451
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Sports_and_Outdoors'),
452
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Home_and_Kitchen'),
453
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Tools_and_Home_Improvement'),
454
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Pet_Supplies'),
455
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Video_Games'),
456
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Kindle_Store'),
457
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Clothing_Shoes_and_Jewelry'),
458
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Patio_Lawn_and_Garden'),
459
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Unknown'),
460
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Books'),
461
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Automotive'),
462
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_CDs_and_Vinyl'),
463
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Beauty_and_Personal_Care'),
464
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Magazine_Subscriptions'),
465
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Software'),
466
+ BenchmarkAmazonReview2023Config(name='5core_timestamp_w_his_Movies_and_TV'),
467
  ]
468
 
469
  def _info(self):
 
507
 
508
  def _split_generators(self, dl_manager):
509
  dl_dir = dl_manager.download_and_extract(self.config.data_dir)
510
+ if isinstance(self.config, BenchmarkAmazonReview2023Config):
511
+ return [
512
+ datasets.SplitGenerator(name='train', gen_kwargs={"filepath": dl_dir['train']}),
513
+ datasets.SplitGenerator(name='valid', gen_kwargs={"filepath": dl_dir['valid']}),
514
+ datasets.SplitGenerator(name='test', gen_kwargs={"filepath": dl_dir['test']}),
515
+ ]
516
+ else:
517
+ return [
518
+ datasets.SplitGenerator(name='full', gen_kwargs={"filepath": dl_dir})
519
+ ]
520
 
521
  def _generate_examples(self, filepath):
522
  with open(filepath, 'r', encoding='utf-8') as file: