yiyanghkust commited on
Commit
dcb1a2b
1 Parent(s): 6965834

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -1
README.md CHANGED
@@ -6,4 +6,25 @@ tags:
6
  - environmental-social-corporate-governance
7
  widget:
8
  - text: "For 2002, our total net emissions were approximately 60 million metric tons of CO2 equivalents for all businesses and operations we have financial interests in, based on its equity share in those businesses and operations. "
9
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  - environmental-social-corporate-governance
7
  widget:
8
  - text: "For 2002, our total net emissions were approximately 60 million metric tons of CO2 equivalents for all businesses and operations we have financial interests in, based on its equity share in those businesses and operations. "
9
+ ---
10
+
11
+ ESG analysis can help investors determine a business' long-term sustainability and identify associated risks. **finbERT-esg-9-categories** is a FinBERT model fine-tuned on about 14,000 manually annotated sentences from firms' ESG reports and annual reports.
12
+
13
+ **finbert-esg-9-categories** classifies a financial text into 9 fine-grained ESG classes: *Climate Change, Natural Capital, Pollution & Waste, Human Capital, Product Liability, Community Relations, Corporate Governance, Business Ethics & Values, and Non-ESG*. It complements [**finbert-esg**](https://huggingface.co/yiyanghkust/finbert-esg) which classifies a text into 4 coarse-grained ESG categories (*E, S, G or None*).
14
+
15
+
16
+ **Input**: A financial text.
17
+
18
+ **Output**: Climate Change, Natural Capital, Pollution & Waste, Human Capital, Product Liability, Community Relations, Corporate Governance, Business Ethics & Values, or Non-ESG.
19
+
20
+ ```python
21
+ from transformers import BertTokenizer, BertForSequenceClassification, pipeline
22
+
23
+ finbert = BertForSequenceClassification.from_pretrained('yiyanghkust/finbert-esg-9-categories',num_labels=9)
24
+ tokenizer = BertTokenizer.from_pretrained('yiyanghkust/finbert-esg-9-categories')
25
+ nlp = pipeline("text-classification", model=finbert, tokenizer=tokenizer)
26
+
27
+ results = nlp('For 2002, our total net emissions were approximately 60 million metric tons of CO2 equivalents for all businesses
28
+ and operations we have financial interests in, based on its equity share in those businesses and operations.')
29
+ print(results) # [{'label': 'Climate Change', 'score': 0.9955655932426453}]
30
+ ```