Downloads · 30 days
6
3% of all-time downloads
Sami92/mmbert-cap
mmbert-cap is a text classification model from Sami92. Use it when you need a label for a piece of text. The card lists the license as cc-by-4.0.
mmbert-cap is a compact multilingual transformer model for classifying text into Comparative Agendas Project (CAP) policy categories. It is designed to provide strong and consistent performance across multiple languag…
Downloads · 30 days
6
3% of all-time downloads
All-time downloads
226
Public
Parameters
141M
599 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors563 MB · 94%
From the Hugging Face model README
mmbert-cap is a compact multilingual transformer model for classifying text into Comparative Agendas Project (CAP) policy categories. It is designed to provide strong and consistent performance across multiple languages and document types while remaining computationally efficient. For further details, read the documentation.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Sami92/mmbert-cap-int8")
model = AutoModelForSequenceClassification.from_pretrained("Sami92/mmbert-cap-int8")
inputs = tokenizer("Your text here", return_tensors="pt", truncation=True)
outputs = model(**inputs)
The model achieves competitive performance while remaining efficient and consistent across languages and document types.
We thank the researchers who shared their datasets with us. Gunnar Thesen and Erik de Vries provided the MaML dataset of news articles, Rens Vliegenhart contributed a dataset of Dutch newspaper articles, and Cornelius Erfort shared a dataset of press releases. High-quality data are essential for reliable machine learning classifiers, and this model could not have been trained without their support. We also thank Thomas Haase for his work in annotating the social media test data.