CoolFace
Modelpublic

YamenRM/sarcasm_model

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
1likes20downloads
Model Card

DistilBERT for Sarcasm Detection ๐ŸŽญ

This is a fine-tuned DistilBERT model on the News Headlines Dataset for Sarcasm Detection.

๐Ÿ“Š Dataset

๐Ÿง  Model Training

  • โ€”Framework: Hugging Face Transformers
  • โ€”Tokenizer: distilbert-base-uncased
  • โ€”Training epochs: 3
  • โ€”Optimizer: AdamW
  • โ€”Batch size: 16

๐Ÿ“ˆ Performance

ModelAccuracy
DistilBERT (ours)93.1%
GRU85.3%
LSTM84.6%
Logistic Regression83.4%
SVM82.9%
Naive Bayes82.7%

๐Ÿš€ Usage

python
from transformers import pipeline

# Load the model from HF Hub
classifier = pipeline("text-classification", model="YamenRM/sarcasm_model")

# Example
text = "Oh great, another Monday morning meeting!"
print(classifier(text))

Output:

[{'label': 'SARCASTIC', 'score': 0.93}]

โœจ Author

Trained and uploaded by YamenRM .