Downloads · 30 days
5
6% of all-time downloads
erdemyavuz/drug-review-sentiment-analysis-bert
drug-review-sentiment-analysis-bert is a text classification model from erdemyavuz. Use it when you need a label for a piece of text. It is set up for transformers.
Fine-tuned BERT on Healthcare User Reviews
Downloads · 30 days
5
6% of all-time downloads
All-time downloads
88
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
Fine-tuned BERT on Healthcare User Reviews
This model is a fine-tuned version of BERT-base-uncased for three-class sentiment classification on user-generated drug reviews.
The task consists of classifying textual reviews into:
The model was trained on a cleaned and preprocessed version of the Drugs.com review dataset.
Source: Drugs.com Drug Review Dataset
Three-class sentiment labels were constructed as:
Text preprocessing pipeline:
Base Model: BERT-base-uncased
Architecture Details:
Loss Function:
Optimizer:
Training performed using:
Evaluation was conducted on a held-out validation set.
Metrics reported:
| Model | Feature | Accuracy | F1 |
| Logistic Regression | TF-IDF | 0.82 | 0.81 |
| Naive Bayes | TF-IDF | 0.78 | 0.77 |
| Random Forest | TF-IDF | 0.81 | 0.79 |
| LSTM | Word2Vec | 0.83 | 0.83 |
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="erdemyavuz55/drug-review-sentiment-analysis-bert"
)
classifier("This medication worked great with minimal side effects.")
Example Output:
[{'label': 'POSITIVE', 'score': 0.97}]
In the broader study, we compared:
The fine-tuned BERT model achieved superior macro-F1 in the three-class setting.
If you use this model, please cite:
Fine-tuned BERT for Drug Review Sentiment Classification, 2026.