Text Classification
Transformers
ONNX
Safetensors
English
bert
political-discourse
media-bias
wording
contextual-review
text-embeddings-inference
Run this model with HF Jobs
Run Giuliocc/doxa-wording-encoder on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Giuliocc/doxa-wording-encoder. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Giuliocc/doxa-wording-encoder on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
Improve model card ops: README.md
Browse files15 unmodified lines161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676815 unmodified lines## Role in TACITUS**product-path.** Use the Default Stack doc in the audit repo when choosing models for tacitus.me.## Do not use for- Legal advice, content moderation without human review, or automated enforcement.- Election forecasting or campaign targeting claims.- Treating scores as calibrated probabilities unless the card says otherwise.- Silent upgrades: always pin `revision`.## Quickstart```bashpip install -r requirements.txthuggingface-cli download Giuliocc/doxa-wording-encoder --revision f4ea475a3e84098262eaa8678441bc0ec0a260bc --local-dir /tmp/doxa-wording-encoder```Pin revision `f4ea475a3e84098262eaa8678441bc0ec0a260bc` in every integration.# DOXA contextual wording encoderCheck wording in a supplied English passage with a compact contextual model,then read the speaker, evidence and surrounding context. The selected modeluses full encoder and classification head fine-tuning. Its original source task is BABE's expert-majority word-choicebias judgment. It returns a wording flag, no wording flag or an unresolvedresult under the published uncertainty threshold.[Use DOXA](https://doxa.tacitus.me/) 路 [TACITUS](https://tacitus.me/doxa/)路 [GitHub](https://github.com/sargonxg/DOXA-by-TACITUS)路 [Benchmark](https://huggingface.co/datasets/Giuliocc/doxa-wording-benchmark)路 [Evaluation and limits](EVALUATION.md)The selected native pipeline reached **0.789 macro-F1**on 384 judgments from held-out source groups. Its gain over the strongest lexicalor current DOXA control was 0.047, with paired95% group-bootstrap interval [0.003, 0.092]. Thequantized model reached 0.784. Inspect the completecontrol table, failures and coverage in the evaluation report.The quantized export's own 95% gain interval includes zero; its point gainand native-model parity support a provisional wording screen, with furtherindependent evaluation needed.These figures label all 384 cases. The deployed quantized model returns `unresolved`on 60 of them (15.6%). On the 324 it resolves, macro-F1 is 0.818(`resolved_coverage` 0.844 and `resolved_macro_f1` 0.818 in `EVALUATION.json`).If you count an unresolved answer as a miss, macro-F1 is 0.690.## Local inference15 unmodified lines1617181920212223242526272829303132333435363738394041424344454647484950515215 unmodified lines## Role in TACITUS`research-baseline`## Do not use for- Author ideology, prejudice-category, or factual-truth scoring- Academic papers or non-news genres without separate validation- Whole-document conclusions from a single sentence screen- Political-neutrality certification or automatic rewriting mandates- Treating unresolved browser answers as confident negatives## QuickstartInstall dependencies, then pin this revision (`01e0a36d4f3f482fee8683da4114bc11df15e242` was `main` when this Quickstart was written):```bashpip install -r requirements.txthf download Giuliocc/doxa-wording-encoder --revision 01e0a36d4f3f482fee8683da4114bc11df15e242 --local-dir ./doxa-wording-encoder``````pythonimport sysfrom huggingface_hub import snapshot_downloadrevision = "01e0a36d4f3f482fee8683da4114bc11df15e242"path = snapshot_download("Giuliocc/doxa-wording-encoder", revision=revision)sys.path.insert(0, path)from inference import WordingModelprint(WordingModel(path).check("The committee voted six to four to approve the policy."))```## Local inference
README.md+20-36