Instructions to use aablaess/amazon-bertopic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BERTopic
How to use aablaess/amazon-bertopic with BERTopic:
from bertopic import BERTopic model = BERTopic.load("aablaess/amazon-bertopic") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
library_name: bertopic
|
| 6 |
+
tags:
|
| 7 |
+
- topic-modeling
|
| 8 |
+
- nlp
|
| 9 |
+
- amazon-reviews
|
| 10 |
+
- clustering
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
# Amazon Fine Food Reviews - BERTopic Model
|
| 14 |
+
|
| 15 |
+
## Model Description
|
| 16 |
+
This is a **Topic Modeling** model built using the [BERTopic](https://maartengr.github.io/BERTopic/) library. It was trained on the **Amazon Fine Food Reviews** dataset to automatically extract and cluster the main topics and aspects discussed by customers in their reviews.
|
| 17 |
+
|
| 18 |
+
This model is part of an academic Web Mining project developed at EMSI Marrakech.
|
| 19 |
+
|
| 20 |
+
### Intended Uses & Limitations
|
| 21 |
+
- **Intended Use:** Automatically extracting topics from English food product reviews (e.g., Taste & Flavor, Packaging, Delivery, Specific foods like Coffee or Tea).
|
| 22 |
+
- **Language:** English
|
| 23 |
+
- **Limitation:** The model is optimized for food-related e-commerce reviews and may not perform well on general text or other domains.
|
| 24 |
+
|
| 25 |
+
### How to use
|
| 26 |
+
You can load this model directly in Python using the BERTopic library:
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
from bertopic import BERTopic
|
| 30 |
+
|
| 31 |
+
# Load the model from Hugging Face
|
| 32 |
+
topic_model = BERTopic.load("aablaess/amazon-bertopic")
|
| 33 |
+
|
| 34 |
+
# Predict topics for new reviews
|
| 35 |
+
docs = ["The coffee tastes great but the packaging was damaged.", "My dog absolutely loves this food!"]
|
| 36 |
+
topics, probs = topic_model.transform(docs)
|