Downloads · 30 days
22
28% of all-time downloads
johnclund/epistemic-stance-classifier
epistemic-stance-classifier is a machine learning model from johnclund. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A Longformer-based classifier for detecting epistemic stances (absolutist, evaluativist, multiplist) in text.
Downloads · 30 days
22
28% of all-time downloads
All-time downloads
79
Public
Parameters
149M
595 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors595 MB · 99%
From the Hugging Face model README
A Longformer-based classifier for detecting epistemic stances (absolutist, evaluativist, multiplist) in text.
from transformers import AutoTokenizer, LongformerForSequenceClassification
import torch
model_name = "johnclund/epistemic-stance-longformer"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = LongformerForSequenceClassification.from_pretrained(model_name)
text = "Your text here..."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=2048)
with torch.no_grad():
outputs = model(**inputs)
probs = torch.nn.functional.softmax(outputs.logits, dim=-1)
predicted_class = torch.argmax(probs, dim=-1).item()
label_map = {0: "absolutist", 1: "evaluativist", 2: "multiplist"}
print(f"Predicted: {label_map[predicted_class]}")
print(f"Confidence: {probs[0][predicted_class]:.4f}")
If you use this model, please cite:
@misc{epistemic-stance-classifier,
title={Epistemic Stance Classifier},
author={John Lund},
year={2026},
howpublished={\url{https://huggingface.co/johnclund/epistemic-stance-classifier}}
}