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 ModelResult.schema.json from Giuliocc/doxa-wording-encoder: direct link, hf CLI and curl.
- Browser
- Download file 1.65 kB
-
https://huggingface.co/Giuliocc/doxa-wording-encoder/resolve/main/ModelResult.schema.json
- Command line
-
hf download hf://Giuliocc/doxa-wording-encoder/ModelResult.schema.json
-
curl -L -o ModelResult.schema.json https://huggingface.co/Giuliocc/doxa-wording-encoder/resolve/main/ModelResult.schema.json
1.65 kB
| { | |
| "additionalProperties": false, | |
| "properties": { | |
| "schema_version": { | |
| "const": "doxa-portfolio-result-v1", | |
| "default": "doxa-portfolio-result-v1", | |
| "title": "Schema Version", | |
| "type": "string" | |
| }, | |
| "request_id": { | |
| "title": "Request Id", | |
| "type": "string" | |
| }, | |
| "model_id": { | |
| "title": "Model Id", | |
| "type": "string" | |
| }, | |
| "revision": { | |
| "title": "Revision", | |
| "type": "string" | |
| }, | |
| "task": { | |
| "title": "Task", | |
| "type": "string" | |
| }, | |
| "status": { | |
| "enum": [ | |
| "ok", | |
| "abstained", | |
| "unsupported_task", | |
| "invalid_input", | |
| "dependency_unavailable", | |
| "integrity_error", | |
| "error" | |
| ], | |
| "title": "Status", | |
| "type": "string" | |
| }, | |
| "result": { | |
| "anyOf": [ | |
| { | |
| "additionalProperties": true, | |
| "type": "object" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Result" | |
| }, | |
| "reason": { | |
| "anyOf": [ | |
| { | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Reason" | |
| }, | |
| "scope_limitations": { | |
| "items": { | |
| "type": "string" | |
| }, | |
| "title": "Scope Limitations", | |
| "type": "array" | |
| }, | |
| "source_payload_uploaded": { | |
| "const": false, | |
| "default": false, | |
| "title": "Source Payload Uploaded", | |
| "type": "boolean" | |
| } | |
| }, | |
| "required": [ | |
| "request_id", | |
| "model_id", | |
| "revision", | |
| "task", | |
| "status", | |
| "result", | |
| "reason", | |
| "scope_limitations" | |
| ], | |
| "title": "ModelResult", | |
| "type": "object" | |
| } | |