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 EVALUATION_AMENDMENT_1.md from Giuliocc/doxa-wording-encoder: direct link, hf CLI and curl.
- Browser
- Download file 1.63 kB
-
https://huggingface.co/Giuliocc/doxa-wording-encoder/resolve/main/EVALUATION_AMENDMENT_1.md
- Command line
-
hf download hf://Giuliocc/doxa-wording-encoder/EVALUATION_AMENDMENT_1.md
-
curl -L -o EVALUATION_AMENDMENT_1.md https://huggingface.co/Giuliocc/doxa-wording-encoder/resolve/main/EVALUATION_AMENDMENT_1.md
Contextual pipeline promotion gate
Amended before held-out evaluation on 28 November 2026 UTC. The first run had reached frozen-encoder embedding preparation and was interrupted before candidate fitting or test predictions. The original registration is retained.
The product question is whether a contextual classifier improves on the deployed wording screen and lexical controls. A learned logistic head over a frozen contextual encoder is itself a trained contextual classifier. Requiring full encoder fine-tuning to outperform that classifier would answer an additional research question and could prevent a useful model upgrade from qualifying.
Select the best contextual pipeline using validation macro-F1 after the registered searches. The choices are the frozen MiniLM mean-pooling plus trained logistic head and the fully fine-tuned compact BERT classifier. The promotion gate compares that selected pipeline with the strongest noncontextual control, including all registered TF-IDF controls and the current DOXA framing control. The minimum gain remains 0.02 macro-F1 with a positive paired 95% article-group bootstrap interval. Quantized parity, agreement and file-size gates are unchanged.
Report both contextual pipelines on the frozen test after selection. Report fine-tuning's gain over the frozen encoder separately and state which pipeline was selected. A frozen-encoder result carries an explicit description of its trained head. It supplies no claim that full encoder fine-tuning improved the result. Calibration and abstention remain fixed by validation, and all failures remain in the evaluation record.