Downloads · 30 days
11
1% of all-time downloads
ningkko/drug-stance-bert
drug-stance-bert is a text classification model from ningkko. Use it when you need a label for a piece of text. It is set up for transformers.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
11
1% of all-time downloads
All-time downloads
1.1K
Public
Repo size
5 GB
Likes
1
Public
Click a slice to open those files.
.bin499 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of cardiffnlp/twitter-roberta-base-sentiment on COVID-CQ, a dataset that contains 3-label annotated opinions (negative, neutral, and positive) of the tweet initiators regarding the use of Chloroquine or Hydroxychloroquine for the treatment or prevention of the coronavirus.
Predict opinions (negative, neutral, and positive) of tweet initiators regarding the use of a drug for the treatment or prevention of the coronavirus. Note that having multiple drug names with different stances in a single tweet can confuse the model.
We followed COVID-CQ to use the following label representation:
Try these examples:
See our Github repo for inference scripts
"We developed two COVID-drug-stance RoBERTa-base models by fine-tuning a pre-trained Twitter-specific stance detection model on a stance data set called COVID-CQ. The data were divided into training-dev-test validation datasets with a 70:10:20 ratio. Model I (COVID-drug-stance-BERT) was trained on the original tweet data, and Model II (COVID-drug-stance-BERT-masked) was trained on tweets with drug names masked as “[mask]” for model generalizability on different drugs. The two models had similar performance on the COVID-19 validation set: COVID-drug-stance-BERT had an accuracy of 86.88%, and the masked model had an accuracy of 86.67%. The two models were then evaluated by predicting tweet initiators’ attitudes towards the drug mentioned in each tweet using randomly selected test sets (100 tweets) of each drug (Hydroxychloquine, Ivermectin, Molnupiravir, Remdesivir). As suggested by the evaluation in Table 2, Model I had better performance and was therefore used in this study".
| Drug | Model I: Original Tweet | Model II: Drug Names Masked | ||||
|---|---|---|---|---|---|---|
| Precision | Recall | F1-Score | Precision | Recall | F1-Score | |
| Hydroxychloroquine | 0.93 | 0.92 | 0.92 | 0.84 | 0.83 | 0.83 |
| Ivermectin | 0.92 | 0.91 | 0.91 | 0.72 | 0.68 | 0.68 |
| Molnupiravir | 0.89 | 0.89 | 0.89 | 0.78 | 0.77 | 0.77 |
| Remdesivir | 0.82 | 0.79 | 0.79 | 0.70 | 0.66 | 0.66 |
The model uploaded here is Model I.
COVID-CQ
See Github
The following hyperparameters were used during training: