env, soc, gov), following the sentence-level design of Schimanski et al. (2024).env=1 (environmental content present) or 0. Aggregating
the predictions over all sentences in a report yields a firm-year environmental disclosure
score (the proportion of environmental sentences). The three pillar classifiers are applied
independently, so a sentence may be positive on more than one pillar.roberta-base; maximum sequence length 256.1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4repo = "josephagossa/KenyaESG-RoBERTa-env"
5tok = AutoTokenizer.from_pretrained(repo)
6model = AutoModelForSequenceClassification.from_pretrained(repo)
7
8text = "The company reduced its greenhouse gas emissions by 20% and expanded renewable energy use in 2021."
9inputs = tok(text, return_tensors="pt", truncation=True, max_length=256)
10with torch.no_grad():
11 prob = torch.softmax(model(**inputs).logits, dim=-1)[0, 1].item()
12label = int(prob >= 0.5) # 1 = environmental content present
13print(label, round(prob, 3))| Metric | Value |
|---|---|
| F1 | 0.917 |
| Precision | 0.880 |
| Recall | 0.957 |
| Inter-annotator kappa | 0.940 |
| Label-vs-human kappa | 0.840 |
Agossa, J. (2026). Pricing the Cost of Compliance: Equity Reactions to Mandatory ESG Disclosure in a Frontier Market. Working paper. SSRN: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6966682
1@unpublished{agossa2026compliance,
2 author = {Agossa, Joseph},
3 title = {Pricing the Cost of Compliance: Equity Reactions to
4 Mandatory ESG Disclosure in a Frontier Market},
5 year = {2026},
6 note = {Working paper, SSRN 6966682},
7 url = {https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6966682}
8}Schimanski, T., Reding, A., Reding, N., Bingler, J., Kraus, M., & Leippold, M. (2024). Bridging the gap in ESG measurement: Using NLP to quantify environmental, social, and governance communication. Finance Research Letters, 61, 104979.
1@article{schimanski2024bridging,
2 author = {Schimanski, Tobias and Reding, Andrin and Reding, Nico and
3 Bingler, Julia and Kraus, Mathias and Leippold, Markus},
4 title = {Bridging the gap in {ESG} measurement: Using {NLP} to quantify
5 environmental, social, and governance communication},
6 journal = {Finance Research Letters},
7 volume = {61},
8 pages = {104979},
9 year = {2024}
10}