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: 865 Bytes
2153e0a | 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 | {
"additionalProperties": false,
"properties": {
"schema_version": {
"const": "doxa-portfolio-request-v1",
"default": "doxa-portfolio-request-v1",
"title": "Schema Version",
"type": "string"
},
"request_id": {
"maxLength": 200,
"minLength": 1,
"title": "Request Id",
"type": "string"
},
"model_id": {
"title": "Model Id",
"type": "string"
},
"revision": {
"pattern": "^[a-f0-9]{40}$",
"title": "Revision",
"type": "string"
},
"task": {
"title": "Task",
"type": "string"
},
"payload": {
"additionalProperties": true,
"title": "Payload",
"type": "object"
}
},
"required": [
"request_id",
"model_id",
"revision",
"task",
"payload"
],
"title": "ModelRequest",
"type": "object"
}
|