Text Classification
Transformers
Safetensors
English
Vietnamese
new
esg
scoring
classification
sustainability
custom_code
text-embeddings-inference
Instructions to use chungpt2123/esg-scoring with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chungpt2123/esg-scoring with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="chungpt2123/esg-scoring", trust_remote_code=True)# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("chungpt2123/esg-scoring", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 2,099 Bytes
24bf74e a8aaa54 24bf74e | 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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | ---
language:
- en
- vi
tags:
- esg
- scoring
- classification
- sustainability
datasets:
- custom
library_name: transformers
pipeline_tag: text-classification
---
# ESG Scoring Model
This model performs ESG (Environmental, Social, Governance) scoring for text classification.
## Model Description
- **Model Type**: Sequence Classification for ESG Scoring
- **Language**: English, Vietnamese
- **Task**: ESG Factor Scoring (E, S, G)
## Usage
```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model and tokenizer
model = AutoModelForSequenceClassification.from_pretrained("chungpt2123/esg-scoring", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("chungpt2123/esg-scoring")
# Example usage
text = "The company has implemented renewable energy solutions to reduce carbon emissions."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=8192)
# Get probabilities for each ESG factor
with torch.no_grad():
outputs = model(**inputs)
probabilities = torch.nn.functional.softmax(outputs.logits, dim=1)
# Get scores for each factor
e_score = probabilities[0, 0].item() # Environmental score
s_score = probabilities[0, 1].item() # Social score
g_score = probabilities[0, 2].item() # Governance score
print(f"Environmental: {e_score:.4f}")
print(f"Social: {s_score:.4f}")
print(f"Governance: {g_score:.4f}")
```
## Training Details
- **Training Data**: Custom ESG dataset
- **Training Approach**: Fine-tuned for ESG factor scoring
- **Labels**: E (Environmental), S (Social), G (Governance)
## Model Performance
The model achieves strong performance on ESG scoring tasks across multiple languages.
## Limitations
- Trained primarily on English and Vietnamese text
- Performance may vary on domain-specific or technical content
- Best performance on texts similar to training data distribution
```bibtex
@misc{esg_scoring_model,
title={ESG Scoring Model},
author={Chung},
year={2024},
publisher={Hugging Face},
url={https://huggingface.co/chungpt2123/esg-scoring}
}
```
|