CoolFace
Apppublic

bk1210/sarcasm-detector

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
App README

๐Ÿ™„ Sarcasm Detector โ€” Sentiment Incongruence Framework

Multi-Task RoBERTa that detects sarcasm and sentiment simultaneously.

๐Ÿ† Performance

MetricScore
Accuracy97.74%
F1-Macro0.9773
AUC-ROC0.9967

๐Ÿง  Architecture

  • โ€”Backbone: RoBERTa-base
  • โ€”Primary Head: Sarcasm detection (binary, Focal Loss ฮณ=2)
  • โ€”Auxiliary Head: Sentiment analysis (3-class CE Loss)
  • โ€”Novel Contribution: Sentiment-Incongruence Auto-Labeler
  • โ€”Loss: L = 0.7ยทLsarcasm + 0.3ยทLsentiment

๐Ÿ“ฆ Datasets

  • โ€”Twitter Sarcasm Headlines Dataset v2 (primary, real labels)
  • โ€”SemEval ABSA โ€” Laptop & Restaurant
  • โ€”Amazon Unlocked Mobile Reviews

๐Ÿ‘ค Author

Bharath Kesav R ยท Amrita Vishwa Vidyapeetham ยท GitHub ยท Portfolio