Downloads · 30 days
12
8% of all-time downloads
Gaanaman/deberta-v2-xlarge-climate-fallacy
deberta-v2-xlarge-climate-fallacy is a text classification model from Gaanaman. Use it when you need a label for a piece of text. The card lists the license as mit.
A fine-tuned DeBERTa-v2-xlarge model for detecting logical fallacies in climate misinformation.
Downloads · 30 days
12
8% of all-time downloads
All-time downloads
158
Public
Parameters
887M
3.6 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors3.5 GB · 100%
From the Hugging Face model README
A fine-tuned DeBERTa-v2-xlarge model for detecting logical fallacies in climate misinformation.
This model is a fine-tuned version of microsoft/deberta-v2-xlarge on the FLICC taxonomy dataset. It detects logical fallacies in climate misinformation claims (e.g., Ad Hominem, False Equivalence, Fake Experts).
It successfully validates the results of the paper "Detecting Fallacies in Climate Misinformation: A Technocognitive Approach" (Zanartu et al., 2024), achieving comparable performance on consumer hardware (Mac M-Series).
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "Gaanaman/deberta-v2-xlarge-climate-fallacy"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
text = "The climate has changed before naturally, so humans aren't causing it now."
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
predicted_class_id = logits.argmax().item()
print(model.config.id2label[predicted_class_id])
# Output: Slothful Induction (or similar)