Downloads · 30 days
6
13% of all-time downloads
salitahir/roberta-esg-category-green-guard-v1
roberta-esg-category-green-guard-v1 is a text classification model from salitahir. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
Task: Sentence-level classification for Environmental (E), Social (S), and Governance (G) categories. Base model: roberta-base, fine-tuned with class-weighted loss to address label imbalance. Repository: GitHub → Gree…
Downloads · 30 days
6
13% of all-time downloads
All-time downloads
48
Public
Parameters
125M
499 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors499 MB · 100%
From the Hugging Face model README
Task: Sentence-level classification for Environmental (E), Social (S), and Governance (G) categories.
Base model: roberta-base, fine-tuned with class-weighted loss to address label imbalance.
Repository: GitHub → Green-Guard Project
| Metric | Value |
|---|---|
| Accuracy | 0.81 |
| Macro F1 | 0.81 |
| Weighted F1 | 0.81 |
Metrics computed on the same held-out test split (
data/processed/splits/)
usingreports/category_metrics_v1.json
{ "0": "E", "1": "S", "2": "G" }
You can load and run the model directly:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_id = "salitahir/roberta-esg-category-green-guard-v1"
tok = AutoTokenizer.from_pretrained(model_id)
mod = AutoModelForSequenceClassification.from_pretrained(model_id).eval()
text = "We invested in renewable energy sources for our operations."
inputs = tok(text, return_tensors="pt", truncation=True)
pred = torch.softmax(mod(**inputs).logits, dim=-1)
label_id = pred.argmax(-1).item()
label = mod.config.id2label[str(label_id)]
print(label, float(pred[0][label_id]))
E 0.88
This model acts as Stage 2 in the Green-Guard pipeline — categorizing sustainability-related sentences identified by the Relevance Model.
MIT License — open for research and commercial reuse with attribution.