AndrinRed commited on
Commit
e7f5760
1 Parent(s): 04a0be3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +43 -0
README.md CHANGED
@@ -1,3 +1,46 @@
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 SocDistilRoBERTa-social
12
+
13
+ ## Model Description
14
+
15
+ Based on [this paper](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4622514), this is the SocDistilRoBERTa-social language model. A language model that is trained to better classify social texts in the ESG domain.
16
+
17
+ Using the [SocDistilRoBERTa-base](https://huggingface.co/ESGBERT/SocDistilRoBERTa-base) model as a starting point, the SocDistilRoBERTa-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
+
25
+ tokenizer_name = "ESGBERT/SocDistilRoBERTa-social"
26
+ model_name = "ESGBERT/SocDistilRoBERTa-social"
27
+
28
+ model = AutoModelForSequenceClassification.from_pretrained(model_name)
29
+ tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, max_len=512)
30
+
31
+ pipe = pipeline("text-classification", model=model, tokenizer=tokenizer) # set device=0 to use GPU
32
+
33
+ # See https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.pipeline
34
+ print(pipe("We follow rigorous supplier checks to prevent slavery and ensure workers' rights."))
35
+ ```
36
+
37
+ ## More details can be found in the paper
38
+
39
+ ```bibtex
40
+ @article{Schimanski23ESGBERT,
41
+ title={{Bridiging the Gap in ESG Measurement: Using NLP to Quantify Environmental, Social, and Governance Communication}},
42
+ author={Tobias Schimanski and Andrin Reding and Nico Reding and Julia Bingler and Mathias Kraus and Markus Leippold},
43
+ year={2023},
44
+ journal={Available on SSRN: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4622514},
45
+ }
46
+ ```