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 errors.json from Giuliocc/doxa-wording-encoder: direct link, hf CLI and curl.
- Browser
- Download file 14.2 kB
-
https://huggingface.co/Giuliocc/doxa-wording-encoder/resolve/main/errors.json
- Command line
-
hf download hf://Giuliocc/doxa-wording-encoder/errors.json
-
curl -L -o errors.json https://huggingface.co/Giuliocc/doxa-wording-encoder/resolve/main/errors.json
14.2 kB
| { | |
| "errors": 81, | |
| "most_confident_errors": [ | |
| { | |
| "id": "babe-sg2-01438", | |
| "group_id": "babe-source-group-65d5569875a828829cf57771", | |
| "reference_label": 0, | |
| "candidate_label": 1, | |
| "quantized_label": 1, | |
| "model_score": 0.956721842288971, | |
| "resolved": true, | |
| "quantized_model_score": 0.9567834138870239, | |
| "token_count": 41, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 1, | |
| "frozen_encoder_logistic": 1 | |
| }, | |
| "controls": { | |
| "word_tfidf": 1, | |
| "character_tfidf": 1, | |
| "word_character_tfidf": 1, | |
| "frozen_encoder_logistic": 1, | |
| "doxa_framing_control": 1 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-01134", | |
| "group_id": "babe-source-group-58c52945297913ef4fdedee1", | |
| "reference_label": 0, | |
| "candidate_label": 1, | |
| "quantized_label": 1, | |
| "model_score": 0.9497824907302856, | |
| "resolved": true, | |
| "quantized_model_score": 0.9498104453086853, | |
| "token_count": 32, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 1, | |
| "frozen_encoder_logistic": 1 | |
| }, | |
| "controls": { | |
| "word_tfidf": 1, | |
| "character_tfidf": 1, | |
| "word_character_tfidf": 1, | |
| "frozen_encoder_logistic": 1, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-02303", | |
| "group_id": "babe-source-group-7a745c098b306bd732f289d2", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.051509808748960495, | |
| "resolved": true, | |
| "quantized_model_score": 0.05219626426696777, | |
| "token_count": 43, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 0, | |
| "character_tfidf": 0, | |
| "word_character_tfidf": 0, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-01644", | |
| "group_id": "babe-source-group-fe65585d4cd6a894dfb6c237", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.05242214724421501, | |
| "resolved": true, | |
| "quantized_model_score": 0.052663229405879974, | |
| "token_count": 47, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 0, | |
| "character_tfidf": 0, | |
| "word_character_tfidf": 0, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-01168", | |
| "group_id": "babe-source-group-5d6fd9623767b7e56dc94c16", | |
| "reference_label": 0, | |
| "candidate_label": 1, | |
| "quantized_label": 1, | |
| "model_score": 0.9443440437316895, | |
| "resolved": true, | |
| "quantized_model_score": 0.9458421468734741, | |
| "token_count": 18, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 1, | |
| "frozen_encoder_logistic": 1 | |
| }, | |
| "controls": { | |
| "word_tfidf": 1, | |
| "character_tfidf": 1, | |
| "word_character_tfidf": 1, | |
| "frozen_encoder_logistic": 1, | |
| "doxa_framing_control": 1 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-01321", | |
| "group_id": "babe-source-group-9192c45743ae6a2f92a8de9d", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.06275331228971481, | |
| "resolved": true, | |
| "quantized_model_score": 0.06356186419725418, | |
| "token_count": 31, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 0, | |
| "character_tfidf": 0, | |
| "word_character_tfidf": 0, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 1 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-01208", | |
| "group_id": "babe-source-group-db9cda912d806beb92975cc1", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.06363456696271896, | |
| "resolved": true, | |
| "quantized_model_score": 0.06412237882614136, | |
| "token_count": 29, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 0, | |
| "character_tfidf": 0, | |
| "word_character_tfidf": 0, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-01585", | |
| "group_id": "babe-source-group-6755ddd95e062c06fd79c0c3", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.06712871789932251, | |
| "resolved": true, | |
| "quantized_model_score": 0.072640560567379, | |
| "token_count": 43, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 0, | |
| "character_tfidf": 0, | |
| "word_character_tfidf": 0, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-00292", | |
| "group_id": "babe-source-group-daa26c6160618842e267d224", | |
| "reference_label": 0, | |
| "candidate_label": 1, | |
| "quantized_label": 1, | |
| "model_score": 0.9262084364891052, | |
| "resolved": true, | |
| "quantized_model_score": 0.924089252948761, | |
| "token_count": 43, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 1, | |
| "frozen_encoder_logistic": 1 | |
| }, | |
| "controls": { | |
| "word_tfidf": 1, | |
| "character_tfidf": 1, | |
| "word_character_tfidf": 1, | |
| "frozen_encoder_logistic": 1, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-00425", | |
| "group_id": "babe-source-group-efd21c9e5afb2a8e0d6bdb4e", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.07711523771286011, | |
| "resolved": true, | |
| "quantized_model_score": 0.08215918391942978, | |
| "token_count": 50, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 0, | |
| "character_tfidf": 0, | |
| "word_character_tfidf": 0, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 1 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-02403", | |
| "group_id": "babe-source-group-f1255ec90461172693884980", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.07855964452028275, | |
| "resolved": true, | |
| "quantized_model_score": 0.07952717691659927, | |
| "token_count": 39, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 0, | |
| "character_tfidf": 0, | |
| "word_character_tfidf": 0, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-01230", | |
| "group_id": "babe-source-group-2d8163ba3165653678c6b741", | |
| "reference_label": 0, | |
| "candidate_label": 1, | |
| "quantized_label": 1, | |
| "model_score": 0.9181568622589111, | |
| "resolved": true, | |
| "quantized_model_score": 0.900957465171814, | |
| "token_count": 39, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 1, | |
| "frozen_encoder_logistic": 1 | |
| }, | |
| "controls": { | |
| "word_tfidf": 1, | |
| "character_tfidf": 1, | |
| "word_character_tfidf": 1, | |
| "frozen_encoder_logistic": 1, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-02848", | |
| "group_id": "babe-source-group-c4cd48b3ced8a546a22ed94f", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.08746875077486038, | |
| "resolved": true, | |
| "quantized_model_score": 0.07563119381666183, | |
| "token_count": 22, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 0, | |
| "character_tfidf": 0, | |
| "word_character_tfidf": 0, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-00094", | |
| "group_id": "babe-source-group-365ae7d0a51bf0c95b7b0ca8", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.09663162380456924, | |
| "resolved": true, | |
| "quantized_model_score": 0.10989619046449661, | |
| "token_count": 46, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 0, | |
| "character_tfidf": 0, | |
| "word_character_tfidf": 0, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-00422", | |
| "group_id": "babe-source-group-cd08e49f8e434f976cd7e658", | |
| "reference_label": 0, | |
| "candidate_label": 1, | |
| "quantized_label": 1, | |
| "model_score": 0.8978663086891174, | |
| "resolved": true, | |
| "quantized_model_score": 0.8928729295730591, | |
| "token_count": 37, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 1, | |
| "frozen_encoder_logistic": 1 | |
| }, | |
| "controls": { | |
| "word_tfidf": 0, | |
| "character_tfidf": 1, | |
| "word_character_tfidf": 1, | |
| "frozen_encoder_logistic": 1, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-00344", | |
| "group_id": "babe-source-group-4aefbb0ba7327b8b3c44b817", | |
| "reference_label": 0, | |
| "candidate_label": 1, | |
| "quantized_label": 1, | |
| "model_score": 0.8978435397148132, | |
| "resolved": true, | |
| "quantized_model_score": 0.8912836909294128, | |
| "token_count": 41, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 1, | |
| "frozen_encoder_logistic": 1 | |
| }, | |
| "controls": { | |
| "word_tfidf": 1, | |
| "character_tfidf": 1, | |
| "word_character_tfidf": 1, | |
| "frozen_encoder_logistic": 1, | |
| "doxa_framing_control": 1 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-00040", | |
| "group_id": "babe-source-group-f423741f2d1061cf41ac01a8", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.10261595994234085, | |
| "resolved": true, | |
| "quantized_model_score": 0.10477709025144577, | |
| "token_count": 26, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 1, | |
| "character_tfidf": 0, | |
| "word_character_tfidf": 1, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 1 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-02951", | |
| "group_id": "babe-source-group-868144e709ea6f7caf8c4a7c", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.10318008810281754, | |
| "resolved": true, | |
| "quantized_model_score": 0.11108656972646713, | |
| "token_count": 26, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 0, | |
| "character_tfidf": 0, | |
| "word_character_tfidf": 0, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 1 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-02501", | |
| "group_id": "babe-source-group-dc48bfe32514aa1a3953959d", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.10358769446611404, | |
| "resolved": true, | |
| "quantized_model_score": 0.10344065725803375, | |
| "token_count": 55, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 1, | |
| "character_tfidf": 0, | |
| "word_character_tfidf": 0, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| }, | |
| { | |
| "id": "babe-sg2-00077", | |
| "group_id": "babe-source-group-0f79765bb6449a5118276484", | |
| "reference_label": 1, | |
| "candidate_label": 0, | |
| "quantized_label": 0, | |
| "model_score": 0.1122221052646637, | |
| "resolved": true, | |
| "quantized_model_score": 0.11186566203832626, | |
| "token_count": 36, | |
| "within_deployment_limit": true, | |
| "contextual_labels": { | |
| "fine_tuned_encoder": 0, | |
| "frozen_encoder_logistic": 0 | |
| }, | |
| "controls": { | |
| "word_tfidf": 0, | |
| "character_tfidf": 1, | |
| "word_character_tfidf": 0, | |
| "frozen_encoder_logistic": 0, | |
| "doxa_framing_control": 0 | |
| }, | |
| "quantized_resolved": true | |
| } | |
| ], | |
| "text_policy": "Review source IDs through the linked benchmark; article text is excluded from this package." | |
| } | |