vyshnav112233's picture
Upload README.md with huggingface_hub
3dd31c4 verified
|
Raw
History Blame Contribute Delete
1.06 kB
---
language: en
license: apache-2.0
base_model: roberta-base
tags:
- text-classification
- sarcasm
datasets:
- surrey-nlp/BESSTIE-CW-26
metrics:
- f1
- accuracy
---
# roberta-base-sarcasm
Fine-tuned [`roberta-base`](https://huggingface.co/roberta-base) on the
[BESSTIE-CW-26](https://huggingface.co/datasets/surrey-nlp/BESSTIE-CW-26)
dataset for binary sarcasm classification.
## Training
- Base model: `roberta-base`
- Task: `sarcasm` (binary)
- Epochs: 2
- Batch size: 4
- Learning rate: 2e-5
- Weight decay: 0.01
- Max sequence length: 64
- Seed: 42 (best of {42, 65, 131})
- Optimizer: AdamW (Trainer default)
## Test results
- macro-F1: **0.6189**
## Usage
```python
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("vyshnav112233/roberta-base-sarcasm")
tokenizer = AutoTokenizer.from_pretrained("vyshnav112233/roberta-base-sarcasm")
inputs = tokenizer("your sentence here", return_tensors="pt", truncation=True, max_length=64)
logits = model(**inputs).logits
```