File size: 1,466 Bytes
86e21ab
0bcde6c
 
 
 
86e21ab
3bc4c20
0bcde6c
 
 
473a2f8
 
0bcde6c
 
 
473a2f8
 
 
 
3d17a8e
473a2f8
 
 
 
 
 
0bcde6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
language: en
license: apache-2.0
tags:
- Env Claims
---

# Model Card for environmental-claims


## Model Description
Trained for specific Environmentional claims, for emerging markets models                                                           | - |

## Citation Information

@misc{stammbach2022environmentalclaims,
  title = {A Dataset for Detecting Real-World Environmental Claims},
  author = {Stammbach, Dominik and Webersinke, Nicolas and Bingler, Julia Anna and Kraus, Mathias and Leippold, Markus},
  year = {2022},
  
}
@misc{
  title = {Custom Emerging markets},
  author = {Tushar Aggarwal},
  year = {December 2022},
}

## How to Get Started With the Model

You can use the model with a pipeline for text classification:

```python
from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
from transformers.pipelines.pt_utils import KeyDataset
import datasets
from tqdm.auto import tqdm

dataset_name = "climatebert/environmental_claims"



dataset = datasets.load_dataset(dataset_name, split="test")

model = AutoModelForSequenceClassification.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name, max_len=512)

pipe = pipeline("text-classification", model=model, tokenizer=tokenizer, device=0)

# See https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.pipeline
for out in tqdm(pipe(KeyDataset(dataset, "text"), padding=True, truncation=True)):
   print(out)
```