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")# pip install -U transformers accelerate # 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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download label_map.json from maai-project/maai-theme-sl: direct link, hf CLI and curl.
- Browser
- Download file 356 Bytes
-
https://huggingface.co/maai-project/maai-theme-sl/resolve/main/label_map.json
- Command line
-
hf download hf://maai-project/maai-theme-sl/label_map.json
-
curl -L -o label_map.json https://huggingface.co/maai-project/maai-theme-sl/resolve/main/label_map.json
356 Bytes
| { | |
| "label2id": { | |
| "Climate Finance & Development": 0, | |
| "Emissions & Carbon Pricing": 1, | |
| "Energy Systems Transition": 2, | |
| "Food Security & Public Health": 3 | |
| }, | |
| "id2label": { | |
| "0": "Climate Finance & Development", | |
| "1": "Emissions & Carbon Pricing", | |
| "2": "Energy Systems Transition", | |
| "3": "Food Security & Public Health" | |
| } | |
| } |