Downloads · 30 days
5
1% of all-time downloads
driftbench/climateattention-10k
climateattention-10k is a token classification model from driftbench. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
climateattention-10k classifies if a given sequence is related to climate topics. As a fine-tuned classifier based on climatebert/distilroberta-base-climate-f (Webersinke et al., 2021), it is using the following Clima…
Downloads · 30 days
5
1% of all-time downloads
All-time downloads
492
Public
Repo size
658 MB
Likes
0
Public
Click a slice to open those files.
.bin329 MB · 99%
From the Hugging Face model README
climateattention-10k classifies if a given sequence is related to climate topics. As a fine-tuned classifier based on climatebert/distilroberta-base-climate-f (Webersinke et al., 2021), it is using the following ClimaText dataset (Varini et al., 2020):
The training set is highly unbalanced. You might want to check the upscaling version: 'kruthof/climateattention-10k-upscaled'
from transformers import AutoTokenizer, pipeline,RobertaForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("climatebert/distilroberta-base-climate-f")
climateattention = RobertaForSequenceClassification.from_pretrained('kruthof/climateattention-10k',num_labels=2)
ClimateAttention = pipeline("text-classification", model=climateattention, tokenizer=tokenizer)
ClimateAttention('Emissions have increased during the last several months')
>> [{'label': 'Yes', 'score': 0.9993829727172852}]
Performance tested on the balanced ClimaText 10K test set, featuring 300 samples (67 positives, 233 negatives) (Varini et al., 2020)
| Accuracy | Precision | Recall | F1 |
|---|---|---|---|
| 0.9633 | 1 | 0.8358 | 0.9106 |
Varini, F. S., Boyd-Graber, J., Ciaramita, M., & Leippold, M. (2020). ClimaText: A dataset for climate change topic detection. arXiv preprint arXiv:2012.00483.
Webersinke, N., Kraus, M., Bingler, J. A., & Leippold, M. (2021). Climatebert: A pretrained language model for climate-related text. arXiv preprint arXiv:2110.12010.