Instructions to use divilian/polarops with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use divilian/polarops with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="divilian/polarops")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("divilian/polarops") model = AutoModelForSequenceClassification.from_pretrained("divilian/polarops") - Notebooks
- Google Colab
- Kaggle
File size: 1,141 Bytes
7f077ba f5b3adb 7f077ba f2acae2 | 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 | ---
pipeline_tag: text-classification
tags:
- transformers
- text-classification
- polarops
---
# PolarOps: DistilBERT for Political Polarity Classification
This is a fine-tuned [DistilBERT](https://huggingface.co/distilbert-base-uncased) model for binary text classification on political polarization data. It predicts whether a given sentence is *polarized* or *healthy* based on training data from the PolarOps project.
## Example Usage
```python
from transformers import pipeline
classifier = pipeline("text-classification", model="divilian/polarops")
classifier("The government should be overthrown.")
```
## Labels
- `healthy` — Civil, constructive language
- `polarized` — Toxic or partisan rhetoric
## Training Details
Trained on X samples using `Trainer()` for Y epochs with learning rate Z.
## Intended Use
Designed for research and experimentation in political discourse classification. Not suitable for deployment in high-stakes settings.
## Limitations
- Binary labels only
- English language only
- May reflect training data biases
## Author
Stephen Davies ([@divilian](https://huggingface.co/divilian)) |