XiaoBB commited on
Commit
8d59919
·
verified ·
1 Parent(s): 71e0f40

Update dataset card: simplify type_text to first sub-category and review title only

Browse files
Files changed (1) hide show
  1. README.md +14 -47
README.md CHANGED
@@ -11,39 +11,6 @@ tags:
11
  - marked-temporal-point-process
12
  size_categories:
13
  - n<1K
14
- configs:
15
- - config_name: default
16
- data_files:
17
- - split: test
18
- path: data/test-*
19
- dataset_info:
20
- features:
21
- - name: seq_idx
22
- dtype: int64
23
- - name: seq_len
24
- dtype: int64
25
- - name: type_category
26
- dtype: string
27
- - name: span_weeks
28
- dtype: float64
29
- - name: description
30
- dtype: string
31
- - name: metadata
32
- dtype: string
33
- - name: time_since_start
34
- list: float64
35
- - name: time_since_last_event
36
- list: float64
37
- - name: type_event
38
- list: string
39
- - name: type_text
40
- list: string
41
- splits:
42
- - name: test
43
- num_bytes: 3776715
44
- num_examples: 229
45
- download_size: 1696318
46
- dataset_size: 3776715
47
  ---
48
 
49
  # Amazon Product Review Events
@@ -57,8 +24,8 @@ Sequences are aggressively filtered to prevent pattern exploitation — uninform
57
  - **Source:** [Amazon Reviews 2023](https://huggingface.co/datasets/McAuley-Lab/Amazon-Reviews-2023) (McAuley Lab, HuggingFace)
58
  - **Categories:** Electronics, Books, Home & Kitchen, Beauty & Personal Care
59
  - **Grouping:** Events grouped by user within a single product category
60
- - **Sequences:** 311
61
- - **Sequence length:** 50–78 events per sequence (mean: 58.3)
62
  - **Event types:** 40 sub-categories (no "other")
63
  - **Time unit:** weeks
64
 
@@ -77,19 +44,19 @@ Each record is a dictionary with 10 fields:
77
  | `time_since_start` | list[float] | Time since the first event (in weeks) |
78
  | `time_since_last_event` | list[float] | Time since the previous event (in weeks) |
79
  | `type_event` | list[str] | Product sub-category slug (see below) |
80
- | `type_text` | list[str] | Natural language description with full category path (excluding root), product title, star rating, review title, and review body. HTML tags, entities, embedded media tags, and URLs are stripped. |
81
 
82
  ## Event Types (40 sub-categories)
83
 
84
  Event types are the 2nd-level product sub-categories, normalized to lowercase slugs. Rare sub-categories are mapped to `"other"` during initial curation, and all `"other"` events are then stripped from the final sequences. Products without a proper category hierarchy (e.g., generic "All Electronics") are excluded.
85
 
86
- **Home & Kitchen** (211 sequences, 10 types): `kitchen_dining` (2,821), `home_d_cor_products` (2,504), `bedding` (2,033), `furniture` (1,343), `bath` (1,106), `storage_organization` (1,061), `heating_cooling_air_quality` (390), `wall_art` (345), `seasonal_d_cor` (304), `event_party_supplies` (239)
87
 
88
- **Beauty & Personal Care** (76 sequences, 10 types): `hair_care` (928), `skin_care` (895), `makeup` (892), `tools_accessories` (656), `foot_hand_nail_care` (609), `personal_care` (206), `shave_hair_removal` (160), `fragrance` (144), `salon_spa` (90), `men_s_grooming` (10)
89
 
90
- **Electronics** (18 sequences, 10 types): `computers_accessories` (224), `television_video` (183), `home_audio` (142), `camera_photo` (110), `portable_audio_video` (105), `headphones_earbuds_accessories` (79), `car_vehicle_electronics` (74), `accessories_supplies` (65), `security_surveillance` (59), `gps_finders_accessories` (9)
91
 
92
- **Books** (6 sequences, 10 types): `literature_fiction` (82), `history` (56), `biographies_memoirs` (41), `children_s_books` (40), `mystery_thriller_suspense` (30), `teen_young_adult` (23), `arts_photography` (22), `christian_books_bibles` (18), `crafts_hobbies_home` (12), `politics_social_sciences` (8)
93
 
94
  ## Curation Filters
95
 
@@ -100,8 +67,8 @@ Sequences are selected to represent moderately prolific reviewers with diverse,
100
  | `min-events` | 50 | Min reviews per user sequence |
101
  | `max-events` | 80 | Max reviews per user sequence |
102
  | `min-types` | 3 | At least 3 distinct sub-category types |
103
- | `min-span` | 6 months | Exclude sequences spanning less than 6 months |
104
- | `max-span` | 72 months | Exclude sequences spanning 72+ months |
105
  | `max-sub-categories` | 10 | Top 10 sub-categories kept per parent category; rest mapped to `"other"` |
106
  | `min-subcat-count` | 50 | Sub-categories with fewer than 50 products mapped to `"other"` |
107
  | Verified purchase only | — | Only verified purchase reviews are included |
@@ -112,11 +79,11 @@ Sequences are selected to represent moderately prolific reviewers with diverse,
112
 
113
  ## Event Text
114
 
115
- Each event's `type_text` is a natural language sentence containing the full category path (excluding the root category), product title, star rating, and review content:
116
 
117
- > The user reviewed "Instant Pot Duo 7-in-1 Electric Pressure Cooker" under Kitchen & Dining > Small Appliances > Multi-Cookers, rating it 5 out of 5 stars. Their review titled "Best kitchen purchase ever" says: This has completely changed how I cook dinner. The pressure cooking function is incredible and saves so much time.
118
 
119
- The model must learn to predict the product sub-category from review content, product titles, category paths, and rating patterns.
120
 
121
  ## Example
122
 
@@ -131,7 +98,7 @@ The model must learn to predict the product sub-category from review content, pr
131
  "time_since_start": [0.0, 0.0016, 0.0024, ...],
132
  "time_since_last_event": [0.0, 0.0016, 0.0008, ...],
133
  "type_event": ["camera_photo", "computers_accessories", "accessories_supplies", ...],
134
- "type_text": ["The user reviewed \"D-Link DCS-5222L HD Pan & Tilt Wi-Fi Camera\" under Camera & Photo > Video Surveillance > Surveillance Cameras > Dome Cameras, rating it 5 out of 5 stars. ...", ...]
135
  }
136
  ```
137
 
@@ -151,7 +118,7 @@ If you use this dataset, please cite:
151
  title={Amazon Product Review Events},
152
  author={XiaoBB},
153
  year={2025},
154
- url={https://huggingface.co/datasets/DescribeEvents/amazon_review_events},
155
  note={Curated from Amazon Reviews 2023 (McAuley Lab)}
156
  }
157
  ```
 
11
  - marked-temporal-point-process
12
  size_categories:
13
  - n<1K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  ---
15
 
16
  # Amazon Product Review Events
 
24
  - **Source:** [Amazon Reviews 2023](https://huggingface.co/datasets/McAuley-Lab/Amazon-Reviews-2023) (McAuley Lab, HuggingFace)
25
  - **Categories:** Electronics, Books, Home & Kitchen, Beauty & Personal Care
26
  - **Grouping:** Events grouped by user within a single product category
27
+ - **Sequences:** 229
28
+ - **Sequence length:** 50–78 events per sequence (mean: 58.1)
29
  - **Event types:** 40 sub-categories (no "other")
30
  - **Time unit:** weeks
31
 
 
44
  | `time_since_start` | list[float] | Time since the first event (in weeks) |
45
  | `time_since_last_event` | list[float] | Time since the previous event (in weeks) |
46
  | `type_event` | list[str] | Product sub-category slug (see below) |
47
+ | `type_text` | list[str] | Natural language description with first sub-category name, product title, star rating, and review title. HTML tags, entities, embedded media tags, and URLs are stripped. |
48
 
49
  ## Event Types (40 sub-categories)
50
 
51
  Event types are the 2nd-level product sub-categories, normalized to lowercase slugs. Rare sub-categories are mapped to `"other"` during initial curation, and all `"other"` events are then stripped from the final sequences. Products without a proper category hierarchy (e.g., generic "All Electronics") are excluded.
52
 
53
+ **Home & Kitchen** (159 sequences, 10 types): `kitchen_dining` (2,131), `home_d_cor_products` (1,888), `bedding` (1,520), `furniture` (1,018), `storage_organization` (837), `bath` (814), `heating_cooling_air_quality` (272), `wall_art` (254), `seasonal_d_cor` (228), `event_party_supplies` (170)
54
 
55
+ **Beauty & Personal Care** (57 sequences, 10 types): `hair_care` (696), `skin_care` (693), `makeup` (642), `tools_accessories` (483), `foot_hand_nail_care` (437), `personal_care` (163), `shave_hair_removal` (127), `fragrance` (108), `salon_spa` (80), `men_s_grooming` (3)
56
 
57
+ **Electronics** (10 sequences, 10 types): `computers_accessories` (119), `television_video` (98), `home_audio` (84), `camera_photo` (71), `portable_audio_video` (58), `accessories_supplies` (39), `security_surveillance` (38), `headphones_earbuds_accessories` (37), `car_vehicle_electronics` (27), `gps_finders_accessories` (5)
58
 
59
+ **Books** (3 sequences, 10 types): `literature_fiction` (40), `history` (25), `biographies_memoirs` (20), `children_s_books` (17), `arts_photography` (17), `teen_young_adult` (15), `mystery_thriller_suspense` (11), `christian_books_bibles` (7), `politics_social_sciences` (5), `crafts_hobbies_home` (2)
60
 
61
  ## Curation Filters
62
 
 
67
  | `min-events` | 50 | Min reviews per user sequence |
68
  | `max-events` | 80 | Max reviews per user sequence |
69
  | `min-types` | 3 | At least 3 distinct sub-category types |
70
+ | `min-span` | 3 months | Exclude sequences spanning less than 3 months |
71
+ | `max-span` | 60 months | Exclude sequences spanning 60+ months |
72
  | `max-sub-categories` | 10 | Top 10 sub-categories kept per parent category; rest mapped to `"other"` |
73
  | `min-subcat-count` | 50 | Sub-categories with fewer than 50 products mapped to `"other"` |
74
  | Verified purchase only | — | Only verified purchase reviews are included |
 
79
 
80
  ## Event Text
81
 
82
+ Each event's `type_text` is a natural language sentence containing the first sub-category, product title, star rating, and review title:
83
 
84
+ > The user reviewed "Instant Pot Duo 7-in-1 Electric Pressure Cooker" under Kitchen & Dining, rating it 5 out of 5 stars. Their review says: "Best kitchen purchase ever".
85
 
86
+ The model must learn to predict the product sub-category from product titles, sub-category context, rating patterns, and review titles.
87
 
88
  ## Example
89
 
 
98
  "time_since_start": [0.0, 0.0016, 0.0024, ...],
99
  "time_since_last_event": [0.0, 0.0016, 0.0008, ...],
100
  "type_event": ["camera_photo", "computers_accessories", "accessories_supplies", ...],
101
+ "type_text": ["The user reviewed \"GE 26571 Line Cord with Coupler (25 Feet, White)\" under Accessories & Supplies, rating it 3 out of 5 stars. Their review says: \"Like quality\".", ...]
102
  }
103
  ```
104
 
 
118
  title={Amazon Product Review Events},
119
  author={XiaoBB},
120
  year={2025},
121
+ url={https://huggingface.co/datasets/XiaoBB/amazon_review_events},
122
  note={Curated from Amazon Reviews 2023 (McAuley Lab)}
123
  }
124
  ```