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 EXPORT_VALIDATION.json from Giuliocc/doxa-wording-encoder: direct link, hf CLI and curl.
- Browser
- Download file 4.06 kB
-
https://huggingface.co/Giuliocc/doxa-wording-encoder/resolve/main/EXPORT_VALIDATION.json
- Command line
-
hf download hf://Giuliocc/doxa-wording-encoder/EXPORT_VALIDATION.json
-
curl -L -o EXPORT_VALIDATION.json https://huggingface.co/Giuliocc/doxa-wording-encoder/resolve/main/EXPORT_VALIDATION.json
4.06 kB
| { | |
| "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 | |
| } | |