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
File size: 2,158 Bytes
b6e07f2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | {
"revision": "doxa-independent-wording-model-gate-v0.1.0",
"integrity_passed": true,
"qualification_gate": {
"native": true,
"quantized": true,
"size": true,
"passed": true
},
"test_cases": 384,
"provided_source_groups": 227,
"selected_pipeline": "fine_tuned_encoder",
"candidate_macro_f1": 0.7886482703323435,
"controls_macro_f1": {
"word_tfidf": 0.7159898218829517,
"character_tfidf": 0.7419757695048699,
"word_character_tfidf": 0.7238384715588363,
"frozen_encoder_logistic": 0.7445421961550993,
"doxa_framing_control": 0.4977164278354659
},
"contextual_pipelines_macro_f1": {
"fine_tuned_encoder": 0.7886482703323435,
"frozen_encoder_logistic": 0.7445421961550993
},
"fine_tuning_gain_over_frozen": 0.044106074177244214,
"strongest_amended_gate_control": "character_tfidf",
"macro_f1_gain": 0.04667250082747365,
"paired_group_bootstrap_interval_95": [
0.0027218200550942345,
0.09238916178767137
],
"bootstrap_draws": 2000,
"bootstrap_seed": 1729,
"quantized_macro_f1": 0.7835238502760967,
"native_quantized_agreement": 0.9895833333333334,
"quantized_macro_f1_gain": 0.04154808077122685,
"quantized_gain_interval_95": [
-0.0043714321046402155,
0.08853098281291114
],
"quantized_positive_gain_interval": false,
"quantized_bytes": 23157564,
"resolved_coverage": 0.828125,
"validation_selected_temperature": 1.0,
"validation_selected_threshold": 0.7,
"reference_label_counts": {
"1": 188,
"0": 196
},
"test_predictions_sha256": "7d93e95a031b67a588b7cb2a0bfd214754e6e11ff26e7a079d9ab5268b0b9a99",
"evaluation_sha256": "e298f9202485b61fdde484be745f0a8fd27a9b64d09c0356554fda05a8e42b56",
"independent_pretest_record_sha256": "0820c2175c9948044d4e02709adad182396bc8bcee15ab730fc3120bc1959a18",
"scope": "Frozen BABE human-majority sentence-wording task under the retained pre-test gate amendment. Canonical source URLs are upstream-provided identities with a known mismatch; article boundaries are not independently verified. No author-ideology, whole-document bias or political-neutrality qualification.",
"errors": []
}
|