Milutin Studen commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -63,6 +63,17 @@ configs:
|
|
| 63 |
|
| 64 |
# Amazon All Beauty Dataset
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
## Usage
|
| 67 |
|
| 68 |
### Download metadata
|
|
@@ -73,4 +84,14 @@ metadata = load_dataset(path="smartcat/Amazon_All_Beauty_2018", name="metadata",
|
|
| 73 |
### Download reviews
|
| 74 |
```python
|
| 75 |
metadata = load_dataset(path="smartcat/Amazon_All_Beauty_2018", name="reviews", split="train")
|
| 76 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
# Amazon All Beauty Dataset
|
| 65 |
|
| 66 |
+
## Directory Structure
|
| 67 |
+
|
| 68 |
+
- **metadata**: Contains product information.
|
| 69 |
+
|
| 70 |
+
- **reviews**: Contains user reviews about the products.
|
| 71 |
+
|
| 72 |
+
- **filtered**:
|
| 73 |
+
- **e5-base-v2_embeddings.jsonl**: Contains "asin" and "embeddings" created with [e5-base-v2](https://huggingface.co/intfloat/e5-base-v2).
|
| 74 |
+
- **metadata.jsonl**: Contains "asin" and "text", where text is created from the title, description, brand, main category, and category.
|
| 75 |
+
- **reviews.jsonl**: Contains "reviewerID", "reviewTime", and "asin". Reviews are filtered to include only perfect 5-star ratings with a minimum of 5 ratings.
|
| 76 |
+
|
| 77 |
## Usage
|
| 78 |
|
| 79 |
### Download metadata
|
|
|
|
| 84 |
### Download reviews
|
| 85 |
```python
|
| 86 |
metadata = load_dataset(path="smartcat/Amazon_All_Beauty_2018", name="reviews", split="train")
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
### Download filtered files
|
| 90 |
+
```
|
| 91 |
+
embeddibgs = load_dataset(
|
| 92 |
+
path="smart cat/Amazon_All_Beauty_2018",
|
| 93 |
+
data_files="filtered/reviews.jsonl",
|
| 94 |
+
split="train",
|
| 95 |
+
)
|
| 96 |
+
```
|
| 97 |
+
**📎 Note:** You can set any file or list of files from the "filtered" directory as the "data_files" argument.
|