

```python
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             |
{"license": "mit", "pipeline_tag": "text-classification", "widget": [{"text": "The city faces a critical decision with only two paths ahead. We can either drastically cut funding for our public libraries or completely eliminate the weekend public transportation service. Choosing to save the libraries means depriving many citizens of essential transportation during weekends. On the other hand, if we maintain the transportation service, our libraries, the cornerstone of our community's education, will suffer greatly. This decision is crucial because cutting library funds doesn't just reduce book availability; it sets us on a slippery slope. Once we start cutting library funds, what's next? Perhaps we'll begin to cut funding for schools, then public safety, leading eventually to the deterioration of all public services. Similarly, if we stop weekend buses and trains, it won't just affect weekend travel. This decision could lead to a complete shutdown of our public transportation system, stranding the elderly and the young, and crippling our city's mobility. Therefore, we are at a crossroads where we must choose between the intellectual growth of our community and its physical mobility. Remember, a decision to prioritize one is not just a simple budget cut; it's the first step towards an eventual collapse of the other. We are, sadly, in a situation where supporting one essential service inevitably leads to the downfall of another."}, {"text": "The sky is blue because the sky is blue"}, {"text": "Experts agree that the science is sound"}, {"text": "Everybody exercises so you should too"}, {"text": "All dogs are dumb because they cannot talk"}]}
transformers safetensors bert text-classification license:mit autotrain_compatible endpoints_compatible region:us