Downloads · 30 days
20
13% of all-time downloads
anonymous813ker/sarcasm-detector
sarcasm-detector is a text classification model from anonymous813ker. 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.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
20
13% of all-time downloads
All-time downloads
158
Public
Parameters
67M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of distilbert/distilbert-base-uncased on [raquiba/Sarcasm_News_Headline]{https://huggingface.co/datasets/raquiba/Sarcasm_News_Headline} dataset. It achieves the following results on the evaluation set:
This model was trained for Sarcasm Detection in customer feedbacks for businesses in the e-commerce, banking, and telecommunication sectors. The base model used for this is distilbert/distilbert-base-uncased and it was trained on the [raquiba/Sarcasm_News_Headline]{https://huggingface.co/datasets/raquiba/Sarcasm_News_Headline} dataset. It is intended to be used in pipeline with multiple models so that the result generated by this model can be used as parameters for other models, this feature couldn't be implemented as even though the accuracy that was calculated was high, the model still labels the text randomly for unknown reason.
Possible Reasons for wrong labelling done by the Sarcasm Model:
For example: "Our team successfully migrated all legacy database infrastructure to your cloud platform over the weekend without experiencing a single second of unexpected system downtime. The automated data synchronization tools functioned seamlessly exactly as advertised, saving our engineering department dozens of hours of manual validation that we had originally budgeted for." This sentece contains genuine praise but since it uses high level of expressing to depict appreciation, it was flagged as 'SARCASM' by the model.
The model was intended to be used as a Sarcasm Detector in a multi-model pipeline alongside other models for sentiment analysis, emotion detection, urgency detetion, and category classification. This model was supposed to help with creating sarcasm-aware sentiment analysis model, urgency detection model, and emotion detection model; as models trained for these tasks individually often lack the ability to detect human sarcasm. The sarcasm model could have provided a flag value to the other models, that could take it under consideration while making their own predictions, making those models sarcasm-aware. This feature couldn't be implemented due to limitation like:
The training and evaluation data comes from the dataset used, from the 'train' and 'test' split of the dataset, which was passed to the 'Trainer()' as arguments:
The model was fine-tuned using the Hugging Face 'Trainer' API.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.2293 | 1.0 | 1789 | 0.1074 | 0.9610 |
| 0.1312 | 2.0 | 3578 | 0.0417 | 0.9883 |
| 0.0615 | 3.0 | 5367 | 0.0279 | 0.9937 |