Text Classification
Transformers
ONNX
Safetensors
English
bert
political-discourse
media-bias
wording
contextual-review
text-embeddings-inference
Instructions to use Giuliocc/doxa-wording-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Giuliocc/doxa-wording-encoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Giuliocc/doxa-wording-encoder")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Giuliocc/doxa-wording-encoder") model = AutoModelForSequenceClassification.from_pretrained("Giuliocc/doxa-wording-encoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 2,842 Bytes
b6e07f2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | [
{
"id": "factual_statement",
"origin": "original_fictional_illustration",
"text": "The committee voted six to four to approve the policy.",
"result": {
"method": "doxa-wording-minilm-v1",
"task": "biased_wording",
"decision": "no_wording_flag",
"model_score": 0.10063666850328445,
"class_scores": {
"no_biased_wording": 0.8993633314967155,
"biased_wording": 0.10063666850328445
},
"score_calibration": "temperature_scaled_on_validation",
"decision_threshold": 0.7,
"token_count": 13,
"maximum_tokens": 256,
"model_id": "Giuliocc/doxa-wording-encoder",
"model_revision": "v0.1.0",
"context_used": false,
"reason": null,
"scope": "A provisional screen trained on English news sentences labeled for wording bias. Academic and other genres require separate validation. Read the surrounding context."
}
},
{
"id": "evaluative_wording",
"origin": "original_fictional_illustration",
"text": "The committee's reckless and disgraceful policy betrayed every resident.",
"result": {
"method": "doxa-wording-minilm-v1",
"task": "biased_wording",
"decision": "wording_flag",
"model_score": 0.9246758222579956,
"class_scores": {
"no_biased_wording": 0.0753241777420044,
"biased_wording": 0.9246758222579956
},
"score_calibration": "temperature_scaled_on_validation",
"decision_threshold": 0.7,
"token_count": 15,
"maximum_tokens": 256,
"model_id": "Giuliocc/doxa-wording-encoder",
"model_revision": "v0.1.0",
"context_used": false,
"reason": null,
"scope": "A provisional screen trained on English news sentences labeled for wording bias. Academic and other genres require separate validation. Read the surrounding context."
}
},
{
"id": "attributed_judgment",
"origin": "original_fictional_illustration",
"text": "The minister called the policy reckless; the report attributed that judgment to her.",
"result": {
"method": "doxa-wording-minilm-v1",
"task": "biased_wording",
"decision": "no_wording_flag",
"model_score": 0.22543752193450928,
"class_scores": {
"no_biased_wording": 0.7745624780654907,
"biased_wording": 0.22543752193450928
},
"score_calibration": "temperature_scaled_on_validation",
"decision_threshold": 0.7,
"token_count": 17,
"maximum_tokens": 256,
"model_id": "Giuliocc/doxa-wording-encoder",
"model_revision": "v0.1.0",
"context_used": false,
"reason": null,
"scope": "A provisional screen trained on English news sentences labeled for wording bias. Academic and other genres require separate validation. Read the surrounding context."
}
}
]
|