tobischimanski commited on
Commit
da30414
1 Parent(s): f57c299

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md CHANGED
@@ -1,3 +1,49 @@
1
  ---
 
2
  license: apache-2.0
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language: en
3
  license: apache-2.0
4
+ datasets:
5
+ - ESGBERT/WaterForestBiodiversityNature_2200
6
+ tags:
7
+ - ESG
8
+ - environmental
9
+ - water
10
  ---
11
+
12
+ # Model Card for EnvironmentalBERT-water
13
+
14
+ ## Model Description
15
+
16
+ Based on [this paper](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4665715), this is the EnvironmentalBERT-water language model. A language model that is trained to better classify water texts in the ESG/nature domain.
17
+
18
+ Using the [EnvironmentalBERT-base](https://huggingface.co/ESGBERT/EnvironmentalBERT-base) model as a starting point, the EnvironmentalBERT-water Language Model is additionally fine-trained on a 2.2k water dataset to detect water text samples.
19
+
20
+ ## How to Get Started With the Model
21
+ It is highly recommended to first classify a sentence to be "environmental" or not with the [EnvironmentalBERT-environmental](https://huggingface.co/ESGBERT/EnvironmentalBERT-environmental) model before classifying whether it is "water" or not.
22
+
23
+ You can use the model with a pipeline for text classification:
24
+
25
+ ```python
26
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
27
+
28
+ tokenizer_name = "ESGBERT/EnvironmentalBERT-water"
29
+ model_name = "ESGBERT/EnvironmentalBERT-water"
30
+
31
+ model = AutoModelForSequenceClassification.from_pretrained(model_name)
32
+ tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, max_len=512)
33
+
34
+ pipe = pipeline("text-classification", model=model, tokenizer=tokenizer) # set device=0 to use GPU
35
+
36
+ # See https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.pipeline
37
+ print(pipe("Water scarcity plays an increasing role in local communities in the South-West of the US.", padding=True, truncation=True))
38
+ ```
39
+
40
+ ## More details can be found in the paper
41
+
42
+ ```bibtex
43
+ @article{Schimanski23ESGBERT,
44
+ title={{Bridiging the Gap in ESG Measurement: Using NLP to Quantify Environmental, Social, and Governance Communication}},
45
+ author={Tobias Schimanski and Chiara Colesanti Senni and Glen Gostlow and Jingwei Ni and Tingyu Yu and Markus Leippold},
46
+ year={2023},
47
+ journal={Available on SSRN: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4665715},
48
+ }
49
+ ```