tobischimanski commited on
Commit
7905f9f
1 Parent(s): 1f9d5e3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +45 -0
README.md CHANGED
@@ -1,3 +1,48 @@
1
  ---
 
2
  license: apache-2.0
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language: en
3
  license: apache-2.0
4
+ datasets:
5
+ - ESGBERT/social_2k
6
+ tags:
7
+ - ESG
8
+ - social
9
  ---
10
+
11
+ # Model Card for SocRoBERTa-social
12
+
13
+ ## Model Description
14
+
15
+ This is the SocRoBERTa-social language model. A language model that is trained to better classify social texts in the ESG domain.
16
+
17
+ Using the [SocRoBERTa-base](https://huggingface.co/ESGBERT/SocRoBERTa-base) model as a starting point, the SocRoBERTa-social Language Model is additionally fine-trained on a 2k social dataset to detect social text samples.
18
+
19
+ ## How to Get Started With the Model
20
+ You can use the model with a pipeline for text classification:
21
+
22
+ ```python
23
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
24
+ from transformers.pipelines.pt_utils import KeyDataset
25
+ import datasets
26
+ from tqdm.auto import tqdm
27
+
28
+ tokenizer_name = "ESGBERT/SocRoBERTa-social"
29
+ model_name = "ESGBERT/SocRoBERTa-social"
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, device=0)
35
+
36
+ # See https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.pipeline
37
+ print(pipe("We follow rigorous supplier checks to prevent slavery and ensure workers' rights."))
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 Andrin Reding and Nico Reding and Julia Bingler and Mathias Kraus and Markus Leippold},
46
+ year={2023}
47
+ }
48
+ ```