Downloads · 30 days
7
20% of all-time downloads
onblueroses/pnyx-habermas
pnyx-habermas is a text classification model from onblueroses. Use it when you need a label for a piece of text. It is set up for onnxruntime. The card lists the license as mit.
Named after Jurgen Habermas's Theory of Communicative Action (1981). This model makes discourse structure legible by extracting two validity dimensions from text.
Downloads · 30 days
7
20% of all-time downloads
All-time downloads
35
Public
Repo size
283 MB
Likes
0
Public
Click a slice to open those files.
.onnx283 MB · 97%
From the Hugging Face model README
Named after Jurgen Habermas's Theory of Communicative Action (1981). This model makes discourse structure legible by extracting two validity dimensions from text.
cross-encoder/nli-deberta-v3-small (141M params)Two binary classification heads:
| Head | Validity Claim | Description |
|---|---|---|
claim_risk | Wahrheit (Truth) | Are unsupported assertions present? |
argument_quality | Richtigkeit (Rightness) | Is reasoning/evidence present? |
Apply softmax to each head's logits. The [1] index gives the positive class probability.
import * as ort from 'onnxruntime-web';
import { AutoTokenizer } from '@huggingface/transformers';
const tokenizer = await AutoTokenizer.from_pretrained('onblueroses/pnyx-habermas');
const session = await ort.InferenceSession.create('model.onnx');
const { input_ids, attention_mask } = tokenizer(text, {
padding: true, truncation: true, max_length: 256, return_tensors: 'np',
});
const output = await session.run({
input_ids: new ort.Tensor('int64', input_ids.data, input_ids.dims),
attention_mask: new ort.Tensor('int64', attention_mask.data, attention_mask.dims),
});
This model powers the SEE layer of Pnyx, a listening infrastructure for public discourse built for the Agora Hackathon x TUM.ai E-Lab (April 2026).