Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-retrieval
|
| 5 |
+
- information-retrieval
|
| 6 |
+
tags:
|
| 7 |
+
- e-commerce
|
| 8 |
+
- product-search
|
| 9 |
+
- ranking
|
| 10 |
+
- amazon
|
| 11 |
+
size_categories:
|
| 12 |
+
- 1M<n<10M
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Amazon Shopping Queries Dataset
|
| 16 |
+
|
| 17 |
+
This dataset contains Amazon shopping queries and product information for training product ranking models.
|
| 18 |
+
|
| 19 |
+
## Dataset Files
|
| 20 |
+
|
| 21 |
+
1. **shopping_queries_dataset_examples.parquet**: Query-product pairs with ESCI labels
|
| 22 |
+
2. **shopping_queries_dataset_products.parquet**: Product catalog with titles and descriptions
|
| 23 |
+
3. **shopping_queries_dataset_sources.csv**: Source metadata
|
| 24 |
+
|
| 25 |
+
## Usage
|
| 26 |
+
|
| 27 |
+
```python
|
| 28 |
+
from huggingface_hub import hf_hub_download
|
| 29 |
+
import pandas as pd
|
| 30 |
+
|
| 31 |
+
# Download files
|
| 32 |
+
examples_path = hf_hub_download(
|
| 33 |
+
repo_id="khanmu2003/amazon-shopping-queries-dataset",
|
| 34 |
+
filename="shopping_queries_dataset_examples.parquet",
|
| 35 |
+
repo_type="dataset"
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
products_path = hf_hub_download(
|
| 39 |
+
repo_id="khanmu2003/amazon-shopping-queries-dataset",
|
| 40 |
+
filename="shopping_queries_dataset_products.parquet",
|
| 41 |
+
repo_type="dataset"
|
| 42 |
+
)
|
| 43 |
+
|
| 44 |
+
sources_path = hf_hub_download(
|
| 45 |
+
repo_id="khanmu2003/amazon-shopping-queries-dataset",
|
| 46 |
+
filename="shopping_queries_dataset_sources.csv",
|
| 47 |
+
repo_type="dataset"
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
+
# Load data
|
| 51 |
+
df_examples = pd.read_parquet(examples_path)
|
| 52 |
+
df_products = pd.read_parquet(products_path)
|
| 53 |
+
df_sources = pd.read_csv(sources_path)
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
## Citation
|
| 57 |
+
|
| 58 |
+
If you use this dataset, please cite appropriately.
|