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
State abstention coverage and the pinned versions needed for exact reproduction
Browse files36 unmodified lines3738394041424 unmodified lines47484950515236 unmodified linesand native-model parity support a provisional wording screen, with furtherindependent evaluation needed.## Local inferenceThe browser uses the checked quantized ONNX graph and tokenizer, totaling4 unmodified linesapply the validation temperature and uncertainty threshold, and retain inputlimits in their structured result.```pythonfrom inference import WordingModelmodel = WordingModel("path/to/downloaded/model")36 unmodified lines37383940414243444546474 unmodified lines52535455565758596061626336 unmodified linesand 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 inferenceThe browser uses the checked quantized ONNX graph and tokenizer, totaling4 unmodified linesapply the validation temperature and uncertainty threshold, and retain inputlimits in their structured result.To reproduce the published predictions exactly, install `numpy==2.5.5`,`onnxruntime==1.22.0` and `tokenizers==0.21.4` (see `requirements.txt`). An independentre-run with those versions matched all 384 published test predictions with a maximumscore difference of 0. With `onnxruntime` 1.32 and `tokenizers` 0.23, scores moved by upto 0.046 and two borderline cases changed decision.```pythonfrom inference import WordingModelmodel = WordingModel("path/to/downloaded/model")
README.md+11