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 runtime_manifest.json from Giuliocc/doxa-wording-encoder: direct link, hf CLI and curl.
- Browser
- Download file 824 Bytes
-
https://huggingface.co/Giuliocc/doxa-wording-encoder/resolve/main/runtime_manifest.json
- Command line
-
hf download hf://Giuliocc/doxa-wording-encoder/runtime_manifest.json
-
curl -L -o runtime_manifest.json https://huggingface.co/Giuliocc/doxa-wording-encoder/resolve/main/runtime_manifest.json
824 Bytes
| { | |
| "method": "doxa-wording-minilm-v1", | |
| "task": "biased_wording", | |
| "model_id": "Giuliocc/doxa-wording-encoder", | |
| "revision": "v0.1.0", | |
| "maximum_tokens": 256, | |
| "selected_pipeline": "fine_tuned_encoder", | |
| "temperature": 1.0, | |
| "threshold": 0.7, | |
| "score_calibration": "temperature_scaled_on_validation", | |
| "files": { | |
| "tokenizer": { | |
| "path": "tokenizer.json", | |
| "sha256": "d241a60d5e8f04cc1b2b3e9ef7a4921b27bf526d9f6050ab90f9267a1f9e5c66" | |
| }, | |
| "weights": { | |
| "path": "onnx/model_quantized.onnx", | |
| "sha256": "cb6dd5d63b6ed2f28c142141c263e3a29deb88289ad4dab50f7584a7c7b27d48", | |
| "bytes": 23157564 | |
| } | |
| }, | |
| "scope": "A provisional screen trained on English news sentences labeled for wording bias. Academic and other genres require separate validation. Read the surrounding context." | |
| } | |