tobischimanski commited on
Commit
f530064
1 Parent(s): 9d5358a

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
+ - biodiversity
10
  ---
11
+
12
+ # Model Card for EnvironmentalBERT-biodiversity
13
+
14
+ ## Model Description
15
+
16
+ Based on [this paper](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4665715), this is the EnvironmentalBERT-biodiversity language model. A language model that is trained to better classify biodiversity 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-biodiversity Language Model is additionally fine-trained on a 2.2k biodiversity dataset to detect biodiversity 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 "biodiversity" 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-biodiversity"
29
+ model_name = "ESGBERT/EnvironmentalBERT-biodiversity"
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("The majority of species are eliminated by modern agriculture techniques.", padding=True, truncation=True))
38
+ ```
39
+
40
+ ## More details can be found in the paper
41
+
42
+ ```bibtex
43
+ @article{Schimanski23ExploringNature,
44
+ title={{Exploring Nature: Datasets and Models for Analyzing Nature-Related Disclosures}},
45
+ author={Tobias Schimanski and Andrin Reding and Nico Reding and Julia Bingler and Mathias Kraus and Markus Leippold},
46
+ year={2023},
47
+ journal={Available on SSRN: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4622514},
48
+ }
49
+ ```