Text Classification
Transformers
Safetensors
English
roberta
distilroberta
climate
text-embeddings-inference
Instructions to use maai-project/maai-frame-sl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maai-project/maai-frame-sl with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="maai-project/maai-frame-sl")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("maai-project/maai-frame-sl") model = AutoModelForSequenceClassification.from_pretrained("maai-project/maai-frame-sl") - Notebooks
- Google Colab
- Kaggle
MAAI Frame Classifier (Single Label)
This model is a fine-tuned distilroberta-base that identifies the dominant framing used in a climate-related text.
Task
Given an input text (sentence, paragraph, or article), the model predicts exactly one frame 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-frame-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
- 2