Text Classification
Transformers
Safetensors
English
Vietnamese
esg_hierarchical
esg
classification
hierarchical
multi-task-learning
sustainability
custom_code
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
Download config.json from chungpt2123/esg-subfactor-classifier: direct link, hf CLI and curl.
- Browser
- Download file 2.74 kB
-
https://huggingface.co/chungpt2123/esg-subfactor-classifier/resolve/main/config.json
- Command line
-
hf download hf://chungpt2123/esg-subfactor-classifier/config.json
-
curl -L -o config.json https://huggingface.co/chungpt2123/esg-subfactor-classifier/resolve/main/config.json
2.74 kB
| { | |
| "architectures": [ | |
| "ESGHierarchicalForSequenceClassification" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "hf_esg_model.ESGHierarchicalConfig", | |
| "AutoModelForSequenceClassification": "hf_esg_model.ESGHierarchicalForSequenceClassification" | |
| }, | |
| "backbone_model_name": "Alibaba-NLP/gte-multilingual-base", | |
| "dropout_rate": 0.1, | |
| "e_sub_id2label": { | |
| "0": "Emission", | |
| "1": "Resource Use", | |
| "2": "Product Innovation" | |
| }, | |
| "e_sub_label2id": { | |
| "Emission": 0, | |
| "Product Innovation": 2, | |
| "Resource Use": 1 | |
| }, | |
| "esg_categories": [ | |
| "E", | |
| "S", | |
| "G", | |
| "Others_ESG" | |
| ], | |
| "esg_id2label": { | |
| "0": "E", | |
| "1": "S", | |
| "2": "G", | |
| "3": "Others_ESG" | |
| }, | |
| "esg_label2id": { | |
| "E": 0, | |
| "G": 2, | |
| "Others_ESG": 3, | |
| "S": 1 | |
| }, | |
| "final_id2label": { | |
| "0": "Emission", | |
| "1": "Resource Use", | |
| "2": "Product Innovation", | |
| "3": "Community", | |
| "4": "Diversity", | |
| "5": "Employment", | |
| "6": "HS", | |
| "7": "HR", | |
| "8": "PR", | |
| "9": "Training", | |
| "10": "BFunction", | |
| "11": "BStructure", | |
| "12": "Compensation", | |
| "13": "Shareholder", | |
| "14": "Vision", | |
| "15": "Others" | |
| }, | |
| "final_label2id": { | |
| "BFunction": 10, | |
| "BStructure": 11, | |
| "Community": 3, | |
| "Compensation": 12, | |
| "Diversity": 4, | |
| "Emission": 0, | |
| "Employment": 5, | |
| "HR": 7, | |
| "HS": 6, | |
| "Others": 15, | |
| "PR": 8, | |
| "Product Innovation": 2, | |
| "Resource Use": 1, | |
| "Shareholder": 13, | |
| "Training": 9, | |
| "Vision": 14 | |
| }, | |
| "final_others_label": "Others", | |
| "freeze_backbone": true, | |
| "g_sub_id2label": { | |
| "0": "BFunction", | |
| "1": "BStructure", | |
| "2": "Compensation", | |
| "3": "Shareholder", | |
| "4": "Vision" | |
| }, | |
| "g_sub_label2id": { | |
| "BFunction": 0, | |
| "BStructure": 1, | |
| "Compensation": 2, | |
| "Shareholder": 3, | |
| "Vision": 4 | |
| }, | |
| "head_hidden_dim_factor": 0.25, | |
| "max_length": 4096, | |
| "model_type": "esg_hierarchical", | |
| "num_e_sub_classes": 3, | |
| "num_esg_classes": 4, | |
| "num_g_sub_classes": 5, | |
| "num_s_sub_classes": 7, | |
| "s_sub_id2label": { | |
| "0": "Community", | |
| "1": "Diversity", | |
| "2": "Employment", | |
| "3": "HS", | |
| "4": "HR", | |
| "5": "PR", | |
| "6": "Training" | |
| }, | |
| "s_sub_label2id": { | |
| "Community": 0, | |
| "Diversity": 1, | |
| "Employment": 2, | |
| "HR": 4, | |
| "HS": 3, | |
| "PR": 5, | |
| "Training": 6 | |
| }, | |
| "shared_hidden_dim_factor": 0.5, | |
| "sub_factors_e": [ | |
| "Emission", | |
| "Resource Use", | |
| "Product Innovation" | |
| ], | |
| "sub_factors_g": [ | |
| "BFunction", | |
| "BStructure", | |
| "Compensation", | |
| "Shareholder", | |
| "Vision" | |
| ], | |
| "sub_factors_s": [ | |
| "Community", | |
| "Diversity", | |
| "Employment", | |
| "HS", | |
| "HR", | |
| "PR", | |
| "Training" | |
| ], | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.52.4" | |
| } | |