Downloads · 30 days
7
1% of all-time downloads
svenstahlmann/finetuned-distilbert-needmining
finetuned-distilbert-needmining is a text classification model from svenstahlmann. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a finetuned version of the Distilbert base model. It was trained to predict need-containing sentences from amazon product reviews.
Downloads · 30 days
7
1% of all-time downloads
All-time downloads
619
Public
Repo size
536 MB
Likes
0
Public
Click a slice to open those files.
.bin268 MB · 100%
From the Hugging Face model README
This model is a finetuned version of the Distilbert base model. It was trained to predict need-containing sentences from amazon product reviews.
This mode is part of ongoing research, after the publication of the research more information will be added.
You can use this model to identify sentences that contain customer needs in user-generated content. This can act as a filtering process to remove uninformative content for market research.
You can use this model directly with a pipeline for text classification:
>>> from transformers import pipeline
>>> classifier = pipeline("text-classification", model="svenstahlmann/finetuned-distilbert-needmining")
>>> classifier("the plasic feels super cheap.")
[{'label': 'contains need', 'score': 0.9397542476654053}]
We are not aware of any bias in the training data.
The training was done on a dataset of 6400 sentences. The sentences were taken from product reviews off amazon and coded if they express customer needs.
For the training, we used Population Based Training (PBT) and optimized for f1 score on a validation set of 1600 sentences.
The preprocessing follows the Distilbert base model.
The model was trained on a titan RTX for 1 hour.
Results on the validation set:
| F1 |
|---|
| 76.0 |
coming soon