Text Classification
Transformers
Safetensors
modernbert
democracy
political-science
party-competition
democratic-rhetoric
mmBert
text-embeddings-inference
Instructions to use LBenoit/democracy-mmBert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LBenoit/democracy-mmBert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="LBenoit/democracy-mmBert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("LBenoit/democracy-mmBert") model = AutoModelForSequenceClassification.from_pretrained("LBenoit/democracy-mmBert") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -95,6 +95,12 @@ label = "Democracy" if prob >= threshold else "Not democracy"
|
|
| 95 |
print(f"{label} (p={prob:.3f})")
|
| 96 |
```
|
| 97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
## Citation
|
| 99 |
Part of a PhD dissertation on democratic credibility competition in European party systems.
|
| 100 |
|
|
|
|
| 95 |
print(f"{label} (p={prob:.3f})")
|
| 96 |
```
|
| 97 |
|
| 98 |
+
|
| 99 |
+

|
| 100 |
+
|
| 101 |
+
|
| 102 |
+

|
| 103 |
+
|
| 104 |
## Citation
|
| 105 |
Part of a PhD dissertation on democratic credibility competition in European party systems.
|
| 106 |
|