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: 4,056 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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | {
"repair_plan_sha256": "c750910939855b368a842e2ea980110b70cffbecadfc5ba227d53864bedde168",
"validation_sha256": "a2e9c240e3c35e6e80a8ff137d2b51b5c25abb2ecd221cc000492443dd7d7867",
"native_validation": {
"rows": 305,
"macro_f1": 0.8229336888277285,
"accuracy": 0.8229508196721311,
"per_class_f1": {
"no_biased_wording": 0.8211920529801324,
"biased_wording": 0.8246753246753247
}
},
"results": [
{
"name": "per_channel_0-reduce_range_0",
"per_channel": false,
"reduce_range": false,
"validation": {
"rows": 305,
"macro_f1": 0.8029206513310934,
"accuracy": 0.8032786885245902,
"per_class_f1": {
"no_biased_wording": 0.7945205479452054,
"biased_wording": 0.8113207547169812
}
},
"native_agreement": 0.9475409836065574,
"probability_mae": 0.039659783244132996,
"batch_16_native_agreement": 0.9540983606557377,
"singleton_batch16_agreement": 0.980327868852459,
"bytes": 23051770,
"sha256": "d3a3f3fdfc2a9ea00cdf925e4d89b56026334bb9342947f988f701d1479cb4e8",
"eligible": false
},
{
"name": "per_channel_0-reduce_range_1",
"per_channel": false,
"reduce_range": true,
"validation": {
"rows": 305,
"macro_f1": 0.79992257148695,
"accuracy": 0.8,
"per_class_f1": {
"no_biased_wording": 0.7959866220735786,
"biased_wording": 0.8038585209003215
}
},
"native_agreement": 0.9049180327868852,
"probability_mae": 0.07955271005630493,
"batch_16_native_agreement": 0.8950819672131147,
"singleton_batch16_agreement": 0.9770491803278688,
"bytes": 23051770,
"sha256": "3e14c7b1d558aaee382e3196895eb7e68867025e3c1b1701b6d3a9f5e039c5f7",
"eligible": false
},
{
"name": "per_channel_1-reduce_range_0",
"per_channel": true,
"reduce_range": false,
"validation": {
"rows": 305,
"macro_f1": 0.8098340213278294,
"accuracy": 0.8098360655737705,
"per_class_f1": {
"no_biased_wording": 0.8104575163398693,
"biased_wording": 0.8092105263157895
}
},
"native_agreement": 0.980327868852459,
"probability_mae": 0.014535539783537388,
"batch_16_native_agreement": 0.9737704918032787,
"singleton_batch16_agreement": 0.9672131147540983,
"bytes": 23157564,
"sha256": "9d3835b9ef7d1fc0059c7365f7315f313690eb698e9fe86ddd02950145d30971",
"eligible": false
},
{
"name": "per_channel_1-reduce_range_1",
"per_channel": true,
"reduce_range": true,
"validation": {
"rows": 305,
"macro_f1": 0.8131067178379077,
"accuracy": 0.8131147540983606,
"per_class_f1": {
"no_biased_wording": 0.8118811881188119,
"biased_wording": 0.8143322475570033
}
},
"native_agreement": 0.9836065573770492,
"probability_mae": 0.014533568173646927,
"batch_16_native_agreement": 0.9836065573770492,
"singleton_batch16_agreement": 0.9868852459016394,
"bytes": 23157564,
"sha256": "cb6dd5d63b6ed2f28c142141c263e3a29deb88289ad4dab50f7584a7c7b27d48",
"eligible": true
}
],
"selected": {
"name": "per_channel_1-reduce_range_1",
"per_channel": true,
"reduce_range": true,
"validation": {
"rows": 305,
"macro_f1": 0.8131067178379077,
"accuracy": 0.8131147540983606,
"per_class_f1": {
"no_biased_wording": 0.8118811881188119,
"biased_wording": 0.8143322475570033
}
},
"native_agreement": 0.9836065573770492,
"probability_mae": 0.014533568173646927,
"batch_16_native_agreement": 0.9836065573770492,
"singleton_batch16_agreement": 0.9868852459016394,
"bytes": 23157564,
"sha256": "cb6dd5d63b6ed2f28c142141c263e3a29deb88289ad4dab50f7584a7c7b27d48",
"eligible": true
},
"test_used_for_export_selection": false,
"training_changed": false
}
|