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
File size: 1,303 Bytes
92bd446 22a0604 92bd446 22a0604 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | ---
license: mit
language:
- en
library_name: bertopic
tags:
- topic-modeling
- nlp
- amazon-reviews
- clustering
---
# Amazon Fine Food Reviews - BERTopic Model
## Model Description
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.
This model is part of an academic Web Mining project developed at EMSI Marrakech.
### Intended Uses & Limitations
- **Intended Use:** Automatically extracting topics from English food product reviews (e.g., Taste & Flavor, Packaging, Delivery, Specific foods like Coffee or Tea).
- **Language:** English
- **Limitation:** The model is optimized for food-related e-commerce reviews and may not perform well on general text or other domains.
### How to use
You can load this model directly in Python using the BERTopic library:
```python
from bertopic import BERTopic
# Load the model from Hugging Face
topic_model = BERTopic.load("aablaess/amazon-bertopic")
# Predict topics for new reviews
docs = ["The coffee tastes great but the packaging was damaged.", "My dog absolutely loves this food!"]
topics, probs = topic_model.transform(docs) |