Downloads · 30 days
28
5% of all-time downloads
lloydmeta/drug-bert
drug-bert is a text classification model from lloydmeta. 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 is a multiclass classification model, built on top of google-bert/bert-base-uncased, trained on the Drug Review Dataset (Drugs.com), and is useful for making a best attempt classification for the condition someon…
Downloads · 30 days
28
5% of all-time downloads
All-time downloads
609
Public
Parameters
109M
7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors436 MB · 100%
From the Hugging Face model README
This is a multiclass classification model, built on top of google-bert/bert-base-uncased, trained on the Drug Review Dataset (Drugs.com), and is useful for making a best attempt classification for the condition someone has, based on their review of a drug.
This is a multiclass classification model, built on top of google-bert/bert-base-uncased, trained on the Drug Review Dataset (Drugs.com), and is useful for making a best attempt classification for the condition someone has, based on their review of a drug.
It was created as a learning exercise covering:
Developed by: lloydmeta of beachape.com
License: Apache 2.0
Finetuned from model: google-bert/bert-base-uncased
Classifying (identifying) the condition someone has, based on their review of a drug.
Actual, clinical diagnosis.
bert-base-uncased model apply herefrom transformers import pipeline
condition_from_drug_review_classifier = pipeline("text-classification", model = "lloydmeta/drug-bert")
text_sentiment = "I have been taking ambien or zolphidem for almost 15 years."
condition_from_drug_review_classifier(text_sentiment)
condition removed.patient_id, drugName, rating, date, etc were removedreview data was tokenised with a max of 51215% of the data set was split for evaluation.
25% of the data set was split for testing.