Text Classification
Transformers
Safetensors
English
Vietnamese
esg_hierarchical
esg
classification
hierarchical
multi-task-learning
sustainability
custom_code
Run this model with HF Jobs
Run chungpt2123/esg-subfactor-classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/chungpt2123/esg-subfactor-classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/chungpt2123/esg-subfactor-classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use chungpt2123/esg-subfactor-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chungpt2123/esg-subfactor-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="chungpt2123/esg-subfactor-classifier", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("chungpt2123/esg-subfactor-classifier", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained("chungpt2123/esg-subfactor-classifier", trust_remote_code=True, device_map="auto")Quick Links
ESG Hierarchical Multi-Task Learning Model
This model performs hierarchical ESG (Environmental, Social, Governance) classification using a multi-task learning approach.
Model Description
- Model Type: Hierarchical Multi-Task Classifier
- Backbone: Alibaba-NLP/gte-multilingual-base
- Language: English, Vietnamese
- Task: ESG Factor and Sub-factor Classification
Architecture
The model uses a hierarchical approach:
- Main ESG Classification: Predicts E, S, G, or Others_ESG
- Sub-factor Classification: Based on main category, predicts specific sub-factors:
- E (Environmental): Emission, Resource Use, Product Innovation
- S (Social): Community, Diversity, Employment, HS, HR, PR, Training
- G (Governance): BFunction, BStructure, Compensation, Shareholder, Vision
Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification
# Load model and tokenizer
model = AutoModelForSequenceClassification.from_pretrained("chungpt2123/esg-subfactor-classifier", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("Alibaba-NLP/gte-multilingual-base")
# Example usage
text = "The company has implemented renewable energy solutions to reduce carbon emissions."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=4096)
# Get predictions
esg_factor, sub_factor = model.predict(inputs.input_ids, inputs.attention_mask)
print(f"ESG Factor: {esg_factor}, Sub-factor: {sub_factor}")
Training Details
- Training Data: Custom ESG dataset
- Training Approach: Two-phase training (freeze backbone → fine-tune entire model)
- Loss Function: Weighted multi-task loss
- Optimization: AdamW with learning rate scheduling
Model Performance
The model achieves strong performance on ESG classification tasks with hierarchical prediction accuracy.
Limitations
- Trained primarily on English and Vietnamese text
- Performance may vary on domain-specific or technical ESG content
- Best performance on texts similar to training data distribution
@misc{esg_hierarchical_model,
title={ESG Hierarchical Multi-Task Learning Model},
author={Chung},
year={2024},
publisher={Hugging Face},
url={https://huggingface.co/chungpt2123/test1}
}
- Downloads last month
- 9
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="chungpt2123/esg-subfactor-classifier", trust_remote_code=True)