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
Download illustrations.json from Giuliocc/doxa-wording-encoder: direct link, hf CLI and curl.
- Browser
- Download file 2.84 kB
-
https://huggingface.co/Giuliocc/doxa-wording-encoder/resolve/main/illustrations.json
- Command line
-
hf download hf://Giuliocc/doxa-wording-encoder/illustrations.json
-
curl -L -o illustrations.json https://huggingface.co/Giuliocc/doxa-wording-encoder/resolve/main/illustrations.json
2.84 kB
| [ | |
| { | |
| "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." | |
| } | |
| } | |
| ] | |