Text Classification
Transformers
ONNX
Safetensors
English
bert
political-discourse
media-bias
wording
contextual-review
text-embeddings-inference
Run this model with HF Jobs
Run Giuliocc/doxa-wording-encoder on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Giuliocc/doxa-wording-encoder. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Giuliocc/doxa-wording-encoder on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
Pin Quickstart revision to current main SHA
Browse files29 unmodified lines303132333334353637373839404142434344454629 unmodified lines
## Quickstart
Install dependencies, then pin this revision (`01e0a36d4f3f482fee8683da4114bc11df15e242` was `main` when this Quickstart was written):Install dependencies, then pin this revision (`c4d7fd3e1312ff9e681d14153fb49aaeff80498e` was `main` when this Quickstart was written):
```bashpip install -r requirements.txthf download Giuliocc/doxa-wording-encoder --revision 01e0a36d4f3f482fee8683da4114bc11df15e242 --local-dir ./doxa-wording-encoderhf download Giuliocc/doxa-wording-encoder --revision c4d7fd3e1312ff9e681d14153fb49aaeff80498e --local-dir ./doxa-wording-encoder```
```pythonimport sysfrom huggingface_hub import snapshot_downloadrevision = "01e0a36d4f3f482fee8683da4114bc11df15e242"revision = "c4d7fd3e1312ff9e681d14153fb49aaeff80498e"path = snapshot_download("Giuliocc/doxa-wording-encoder", revision=revision)sys.path.insert(0, path)from inference import WordingModelREADME.md+3-3