Update README.md
Browse files
README.md
CHANGED
|
@@ -5,3 +5,38 @@ tags:
|
|
| 5 |
- text-classification
|
| 6 |
- polarops
|
| 7 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
- text-classification
|
| 6 |
- polarops
|
| 7 |
---
|
| 8 |
+
|
| 9 |
+
# PolarOps: DistilBERT for Political Polarity Classification
|
| 10 |
+
|
| 11 |
+
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.
|
| 12 |
+
|
| 13 |
+
## Example Usage
|
| 14 |
+
|
| 15 |
+
```python
|
| 16 |
+
from transformers import pipeline
|
| 17 |
+
classifier = pipeline("text-classification", model="divilian/polarops")
|
| 18 |
+
classifier("The government should be overthrown.")
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
## Labels
|
| 22 |
+
|
| 23 |
+
- `healthy` — Civil, constructive language
|
| 24 |
+
- `polarized` — Toxic or partisan rhetoric
|
| 25 |
+
|
| 26 |
+
## Training Details
|
| 27 |
+
|
| 28 |
+
Trained on X samples using `Trainer()` for Y epochs with learning rate Z.
|
| 29 |
+
|
| 30 |
+
## Intended Use
|
| 31 |
+
|
| 32 |
+
Designed for research and experimentation in political discourse classification. Not suitable for deployment in high-stakes settings.
|
| 33 |
+
|
| 34 |
+
## Limitations
|
| 35 |
+
|
| 36 |
+
- Binary labels only
|
| 37 |
+
- English language only
|
| 38 |
+
- May reflect training data biases
|
| 39 |
+
|
| 40 |
+
## Author
|
| 41 |
+
|
| 42 |
+
Stephen Davies ([@divilian](https://huggingface.co/divilian))
|