Text Classification
Transformers
Safetensors
English
roberta
distilroberta
climate
text-embeddings-inference
Instructions to use maai-project/maai-theme-sl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maai-project/maai-theme-sl with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="maai-project/maai-theme-sl")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("maai-project/maai-theme-sl") model = AutoModelForSequenceClassification.from_pretrained("maai-project/maai-theme-sl") - Notebooks
- Google Colab
- Kaggle
MAAI Theme Classifier (Single Label)
This model is a fine-tuned distilroberta-base that predicts the primary theme of a climate-related article or paragraph.
Task
Given an input text (sentence, paragraph, or article), the model predicts exactly one theme label.
Labels
The full label set and mappings are provided in label_map.json.
Model Details
- Architecture: DistilRoBERTa
- Task type: Single-label text classification
- Base model:
distilroberta-base
Training
- Dataset: Final_20k_Articles_for_MaaiBert.csv
- Epochs: 4
- Train batch size: 16
- Evaluation batch size: 32
Evaluation
Evaluation results on the test set are available in test_metrics.json.
Usage
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="maai-project/maai-theme-sl"
)
classifier("New policies aim to reduce carbon emissions and introduce carbon taxes.")
Notes
- This model predicts one label only per input.
- For best results, use complete sentences or paragraphs.
- Downloads last month
- 5