Downloads · 30 days
8
15% of all-time downloads
mempooltx/bert-base-fallacy-detection
bert-base-fallacy-detection is a text classification model from mempooltx. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
Downloads · 30 days
8
15% of all-time downloads
All-time downloads
54
Public
Parameters
108M
867 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors433 MB · 100%
From the Hugging Face model README
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch
import torch.nn.functional as F
# Load the model and tokenizer
model = AutoModelForSequenceClassification.from_pretrained("mempooltx/bert-base-fallacy-detection")
tokenizer = AutoTokenizer.from_pretrained("mempooltx/bert-base-fallacy-detection")
# Prepare the text
text = "the sky is blue because the sky is blue"
inputs = tokenizer(text, padding=True, truncation=True, return_tensors="pt")
# Get predictions
model.eval()
with torch.no_grad():
outputs = model(**inputs)
# Convert logits to probabilities
probabilities = F.softmax(outputs.logits, dim=1)
| Label | Description |
|---|---|
| 0 | false causality |
| 1 | circular reasoning |
| 2 | fallacy of relevance |
| 3 | intentional |
| 4 | fallacy of credibility |
| 5 | faulty generalization |
| 6 | equivocation |
| 7 | ad hominem |
| 8 | appeal to emotion |
| 9 | fallacy of extension |
| 10 | false dilemma |
| 11 | fallacy of logic |
| 12 | ad populum |