Based on
this paper
, this is the fine-tuned ClimateBERT language model with a classification head for detecting sentences that are either related to emission net zero or reduction targets.
We use the
climatebert/distilroberta-base-climate-f
language model as a starting point and fine-tuned it on our human-annotated dataset.
Citation Information
@article{schimanski2023climatebertnetzero,
title={ClimateBERT-NetZero: Detecting and Assessing Net Zero and Reduction Targets},
author={Tobias Schimanski and Julia Bingler and Camilla Hyslop and Mathias Kraus and Markus Leippold},
year={2023},
eprint={2310.08096},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
How to Get Started With the Model
You can use the model with a pipeline for text classification:
from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
from transformers.pipelines.pt_utils import KeyDataset
import datasets
from tqdm.auto import tqdm
dataset_name = "climatebert/climate_detection"
tokenizer_name = "climatebert/distilroberta-base-climate-f"
model_name = "climatebert/netzero-reduction"# If you want to use your own data, simply load them as 🤗 Datasets dataset, see https://huggingface.co/docs/datasets/loading
dataset = datasets.load_dataset(dataset_name, split="test")
model = AutoModelForSequenceClassification.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, max_len=512)
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer, device=0)
# See https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.pipelinefor i, out inenumerate(tqdm(pipe(KeyDataset(dataset, "text"), padding=True, truncation=True))):
print(dataset["text"][i])
print(out)
### IMPORTANT REMARK: It is highly recommended to use a prior classification step before applying ClimateBERT-NetZero.### Establish a climate context with "climatebert/distilroberta-base-climate-detector" for paragraphs### or "ESGBERT/EnvironmentalBERT-environmental" for sentences and then label the data with ClimateBERT-NetZero.
Runs of climatebert netzero-reduction on huggingface.co
1.2K
Total runs
0
24-hour runs
-31
3-day runs
-61
7-day runs
212
30-day runs
More Information About netzero-reduction huggingface.co Model
netzero-reduction huggingface.co is an AI model on huggingface.co that provides netzero-reduction's model effect (), which can be used instantly with this climatebert netzero-reduction model. huggingface.co supports a free trial of the netzero-reduction model, and also provides paid use of the netzero-reduction. Support call netzero-reduction model through api, including Node.js, Python, http.
netzero-reduction huggingface.co is an online trial and call api platform, which integrates netzero-reduction's modeling effects, including api services, and provides a free online trial of netzero-reduction, you can try netzero-reduction online for free by clicking the link below.
climatebert netzero-reduction online free url in huggingface.co:
netzero-reduction is an open source model from GitHub that offers a free installation service, and any user can find netzero-reduction on GitHub to install. At the same time, huggingface.co provides the effect of netzero-reduction install, users can directly use netzero-reduction installed effect in huggingface.co for debugging and trial. It also supports api for free installation.