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
PolarOps: DistilBERT for Political Polarity Classification
This is a fine-tuned DistilBERT 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
from transformers import pipeline
classifier = pipeline("text-classification", model="divilian/polarops")
classifier("The government should be overthrown.")
Labels
healthyโ Civil, constructive languagepolarizedโ 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)
- Downloads last month
- 1