GrigoriiShop Kshetrajna commited on
Commit
002ca15
·
0 Parent(s):

Super-squash branch 'main' using huggingface_hub

Browse files

Co-authored-by: Kshetrajna <Kshetrajna@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mds filter=lfs diff=lfs merge=lfs -text
13
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
+ *.model filter=lfs diff=lfs merge=lfs -text
15
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
16
+ *.npy filter=lfs diff=lfs merge=lfs -text
17
+ *.npz filter=lfs diff=lfs merge=lfs -text
18
+ *.onnx filter=lfs diff=lfs merge=lfs -text
19
+ *.ot filter=lfs diff=lfs merge=lfs -text
20
+ *.parquet filter=lfs diff=lfs merge=lfs -text
21
+ *.pb filter=lfs diff=lfs merge=lfs -text
22
+ *.pickle filter=lfs diff=lfs merge=lfs -text
23
+ *.pkl filter=lfs diff=lfs merge=lfs -text
24
+ *.pt filter=lfs diff=lfs merge=lfs -text
25
+ *.pth filter=lfs diff=lfs merge=lfs -text
26
+ *.rar filter=lfs diff=lfs merge=lfs -text
27
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
28
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar filter=lfs diff=lfs merge=lfs -text
31
+ *.tflite filter=lfs diff=lfs merge=lfs -text
32
+ *.tgz filter=lfs diff=lfs merge=lfs -text
33
+ *.wasm filter=lfs diff=lfs merge=lfs -text
34
+ *.xz filter=lfs diff=lfs merge=lfs -text
35
+ *.zip filter=lfs diff=lfs merge=lfs -text
36
+ *.zst filter=lfs diff=lfs merge=lfs -text
37
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
38
+ # Audio files - uncompressed
39
+ *.pcm filter=lfs diff=lfs merge=lfs -text
40
+ *.sam filter=lfs diff=lfs merge=lfs -text
41
+ *.raw filter=lfs diff=lfs merge=lfs -text
42
+ # Audio files - compressed
43
+ *.aac filter=lfs diff=lfs merge=lfs -text
44
+ *.flac filter=lfs diff=lfs merge=lfs -text
45
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
46
+ *.ogg filter=lfs diff=lfs merge=lfs -text
47
+ *.wav filter=lfs diff=lfs merge=lfs -text
48
+ # Image files - uncompressed
49
+ *.bmp filter=lfs diff=lfs merge=lfs -text
50
+ *.gif filter=lfs diff=lfs merge=lfs -text
51
+ *.png filter=lfs diff=lfs merge=lfs -text
52
+ *.tiff filter=lfs diff=lfs merge=lfs -text
53
+ # Image files - compressed
54
+ *.jpg filter=lfs diff=lfs merge=lfs -text
55
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
56
+ *.webp filter=lfs diff=lfs merge=lfs -text
57
+ # Video files - compressed
58
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
59
+ *.webm filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - image-classification
5
+ - text-classification
6
+ - zero-shot-classification
7
+ tags:
8
+ - e-commerce
9
+ - product-categorization
10
+ - taxonomy
11
+ - multimodal
12
+ - shopify
13
+ - retail
14
+ - product-catalog
15
+ size_categories:
16
+ - 10K<n<100K
17
+ dataset_info:
18
+ features:
19
+ - name: product_title
20
+ dtype: string
21
+ - name: product_description
22
+ dtype: string
23
+ - name: product_image
24
+ dtype: image
25
+ - name: potential_product_categories
26
+ list: string
27
+ - name: ground_truth_brand
28
+ dtype: string
29
+ - name: ground_truth_is_secondhand
30
+ dtype: bool
31
+ - name: ground_truth_category
32
+ dtype: string
33
+ splits:
34
+ - name: train
35
+ num_bytes: 7425492387
36
+ num_examples: 38631
37
+ - name: test
38
+ num_bytes: 2085920280
39
+ num_examples: 9658
40
+ download_size: 9496974081
41
+ dataset_size: 9511412667
42
+ configs:
43
+ - config_name: default
44
+ data_files:
45
+ - split: train
46
+ path: data/train-*
47
+ - split: test
48
+ path: data/test-*
49
+ ---
50
+
51
+ # The Catalogue: Product Taxonomy Classification Benchmark
52
+
53
+ A large-scale, multimodal benchmark dataset for product taxonomy classification, featuring real e-commerce products with images, descriptions, and hierarchical category labels.
54
+
55
+ ## Dataset Description
56
+
57
+ **The Catalogue** is a benchmark dataset designed to evaluate AI models on the task of classifying products into a standardized taxonomy. Each sample includes a product image, title, description, brand, and the ground-truth category from Shopify's product taxonomy.
58
+
59
+ This dataset is ideal for:
60
+ - Evaluating vision-language models on real-world product classification
61
+ - Benchmarking multimodal understanding in e-commerce contexts
62
+ - Testing hierarchical classification capabilities
63
+ - Comparing different approaches to product categorization
64
+
65
+ ### Dataset Statistics
66
+
67
+ | Metric | Value |
68
+ |--------|-------|
69
+ | Total samples | 48,289 |
70
+ | Unique categories | 10,476 |
71
+ | Unique brands | 28,913 |
72
+ | Products with descriptions | 92.9% |
73
+ | Products with brand | 98.2% |
74
+ | Average category depth | 4.5 levels |
75
+ | Category depth range | 1-8 levels |
76
+
77
+ ### Top-Level Category Distribution
78
+
79
+ | Category | Count | Percentage |
80
+ |----------|-------|------------|
81
+ | Home & Garden | 7,912 | 16.4% |
82
+ | Sporting Goods | 6,968 | 14.4% |
83
+ | Arts & Entertainment | 5,558 | 11.5% |
84
+ | Hardware | 5,137 | 10.6% |
85
+ | Vehicles & Parts | 2,555 | 5.3% |
86
+ | Business & Industrial | 2,435 | 5.0% |
87
+ | Electronics | 2,344 | 4.9% |
88
+ | Apparel & Accessories | 2,173 | 4.5% |
89
+ | Health & Beauty | 2,162 | 4.5% |
90
+ | Food, Beverages & Tobacco | 2,036 | 4.2% |
91
+ | Animals & Pet Supplies | 1,922 | 4.0% |
92
+ | Furniture | 1,707 | 3.5% |
93
+ | Baby & Toddler | 1,226 | 2.5% |
94
+ | Toys & Games | 1,153 | 2.4% |
95
+ | Office Supplies | 1,129 | 2.3% |
96
+ | Cameras & Optics | 967 | 2.0% |
97
+ | Other | 900 | 1.9% |
98
+
99
+ ## Dataset Structure
100
+
101
+ ### Data Fields
102
+
103
+ | Field | Type | Description |
104
+ |-------|------|-------------|
105
+ | `product_title` | string | Product title |
106
+ | `product_description` | string | Product description (may be empty) |
107
+ | `product_image` | Image | Product image |
108
+ | `potential_product_categories` | list[string] | Candidate category paths |
109
+ | `ground_truth_brand` | string | Brand name (may be empty) |
110
+ | `ground_truth_is_secondhand` | boolean | Whether the product is secondhand |
111
+ | `ground_truth_category` | string | Ground truth category path |
112
+
113
+ ### Category Format
114
+
115
+ Categories follow a hierarchical path format:
116
+ ```
117
+ Electronics > Computers > Laptops
118
+ Home & Garden > Kitchen & Dining > Cookware
119
+ ```
120
+
121
+ ### Data Splits
122
+
123
+ | Split | Samples | Percentage |
124
+ |-------|---------|------------|
125
+ | Train | 38,631 | 80% |
126
+ | Test | 9,658 | 20% |
127
+
128
+ ## Usage
129
+
130
+ ```python
131
+ from datasets import load_dataset
132
+
133
+ dataset = load_dataset("Shopify/product-catalogue")
134
+
135
+ # Access splits
136
+ train_data = dataset["train"]
137
+ test_data = dataset["test"]
138
+
139
+ # Example
140
+ sample = train_data[0]
141
+ print(f"Title: {sample['product_title']}")
142
+ print(f"Category: {sample['ground_truth_category']}")
143
+ sample['product_image'].show()
144
+ ```
145
+
146
+ ## Evaluation
147
+
148
+ The primary task is to predict the `ground_truth_category` given the product's image, title, and optionally description/brand.
149
+
150
+ Suggested metrics:
151
+ - Hierarchical F1 for categories
152
+ - Precision and recall for brand and is_secondhand
153
+
154
+ ## Source
155
+
156
+ Products were sampled from Shopify's merchant catalog, representing real e-commerce products across diverse categories and industries.
157
+
158
+ ## License
159
+
160
+ Apache 2.0
161
+
162
+ ## Citation
163
+
164
+ ```bibtex
165
+ @dataset{product-catalogue,
166
+ title={The Catalogue: Product Taxonomy Classification Benchmark},
167
+ author={Shopify},
168
+ year={2025},
169
+ publisher={Hugging Face},
170
+ url={https://huggingface.co/datasets/Shopify/the-catalogue-public-beta}
171
+ }
172
+ ```
173
+
data/test-00000-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ed14e760d9d879a3fc25aec0466997e068dea3a03fb6db5dc8e85fbad9c7d32
3
+ size 421327327
data/test-00001-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cacdcfcbf608dbe873cb542b7222038a2c0aae86f0016beba3b5fb7d36932141
3
+ size 383746612
data/test-00002-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a46ffd4a6dafa8f2bfc03ded46da5d65cedaed0d41f70523f84f3b3a166086e
3
+ size 377646277
data/test-00003-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bbd69012d2a586daf4917cc600282515de9e1cecc1bd8462c50da73347bb2c0
3
+ size 380444166
data/test-00004-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f638327f84ad749dee73a7ad867ddf9146c877c2a81119e5bd77f2770351ffdf
3
+ size 354477773
data/train-00000-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ecb8da7f551ef0fbda305f6352ce4e96ac43f1c02d26bbf4870a52d6f458f88
3
+ size 503726506
data/train-00001-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3269d7159c99e6b9fc8d76ef8bea8582b1d58a142de298dcceae3a60c66fdce9
3
+ size 520278040
data/train-00002-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e97aa615f8fddf6ac62bf1c3324f87b5870976cb8d0877965203c6587ebacd3a
3
+ size 515239613
data/train-00003-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9528c96850c2ead086079b9ae45fefcd25959ef6a0ef63e0f3bbceb634d3f91
3
+ size 497497890
data/train-00004-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40cf0825f7e360c9ce0cb003d6877b6e2b6356b6a4b850abf768abc601cd18ef
3
+ size 515621914
data/train-00005-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2b7917ab4ff829c8e85865deaeb543b81e24b0677f4a545328cb13d760186f0
3
+ size 490269450
data/train-00006-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:168673f56658ec6b00c8a46eb2fad3d8232316ffa4e373904ce3e90bb9363d79
3
+ size 547480337
data/train-00007-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4581750598636dbc7f100aa0a2842ab5107913e48b6a329fcfd14483b978dc33
3
+ size 478866637
data/train-00008-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1489d1ae712b8fcb039b3eba998caec6f839414d3b188b49a6a5c3ca696cf151
3
+ size 505629872
data/train-00009-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a106666138311260ec7ab226931b6a564098f905e3b474043bc11b308b005aa7
3
+ size 484171932
data/train-00010-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72537642ebf2c5121c08ae643817559c11934e0434cb9c0f1663284bd615419b
3
+ size 521487950
data/train-00011-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9307d2c68872ea63022b83466664567c49dbf86d443977339461f8d51096d83f
3
+ size 514457271
data/train-00012-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:477f1b00e7cccb13c90019dad41148735dc93b9e1f3e7e6027a4a0dcc37dfe40
3
+ size 508913925
data/train-00013-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cffd7398de2ee8568139da4857f3278bdf114e374bed8bf7e86fb56211847f49
3
+ size 477681393
data/train-00014-of-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b699ef6f1dad92883ff366728af91d0b40ebdaf508d3f0c0aefd8cf257336a0
3
+ size 498009196