File size: 2,053 Bytes
6965834
 
 
 
 
 
 
 
dcb1a2b
 
 
 
 
 
 
 
 
 
 
3a764ae
 
 
dcb1a2b
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
language: "en"
tags:
- financial-text-analysis
- esg
- environmental-social-corporate-governance
widget:
- 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. "
---

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. 

**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*). 


**Input**: A financial text.

**Output**: Climate Change, Natural Capital, Pollution & Waste, Human Capital, Product Liability, Community Relations, Corporate Governance, Business Ethics & Values, or Non-ESG.

# How to use 
You can use this model with Transformers pipeline for fine-grained ESG 9 categories classification.

```python
from transformers import BertTokenizer, BertForSequenceClassification, pipeline

finbert = BertForSequenceClassification.from_pretrained('yiyanghkust/finbert-esg-9-categories',num_labels=9)
tokenizer = BertTokenizer.from_pretrained('yiyanghkust/finbert-esg-9-categories')
nlp = pipeline("text-classification", model=finbert, tokenizer=tokenizer)

results = nlp('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.')
print(results) # [{'label': 'Climate Change', 'score': 0.9955655932426453}]
```