Downloads · 30 days
10
31% of all-time downloads
Talip7/distilbert-drug-cls
distilbert-drug-cls is a text classification model from Talip7. 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 multi-class text classification model trained to predict a medical condition based on patient drug reviews from the Drugs.com dataset.
Downloads · 30 days
10
31% of all-time downloads
All-time downloads
32
Public
Parameters
67.5M
270 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors270 MB · 100%
From the Hugging Face model README
This model is a multi-class text classification model trained to predict a medical condition based on patient drug reviews from the Drugs.com dataset.
Macro F1 is relatively low due to strong class imbalance and a large number of rare condition labels. Accuracy reflects strong performance on frequent condition classes.
DataCollatorWithPaddingfrom transformers import pipeline
classifier = pipeline(
"text-classification",
model="Talip7/distilbert-drug-cls"
)
classifier(
"This medication significantly reduced my migraine but caused nausea and dizziness."
)
Highly imbalanced class distribution
User-generated reviews may contain noise
Not intended for medical advice or diagnosis
Source: Drugs.com reviews dataset
Preprocessing:
lowercasing
HTML cleanup
minimum review length filtering
Trained and published as part of hands-on NLP / LLM learning with Hugging Face.