huypham71/esg-claim
PhoBERT multi-head (sigmoid) cho ESG — backbone vinai/phobert-base, các đầu: ['commitment', 'specificity'].
Đây là kiến trúc tùy biến (một encoder + nhiều đầu nhị phân độc lập, masked BCE),
KHÔNG phải AutoModelForSequenceClassification, nên cần dùng code esgwash để tải.
- Thresholds theo từng đầu (tune trên tập val, tối đa hóa F1):
{'commitment': 0.28, 'specificity': 0.45} - File:
model.safetensors(backbone + các đầu), tokenizer PhoBERT,config.json.
Cách tải
import json
from esgwash.models.trainer import MultiHeadTrainer
from huggingface_hub import snapshot_download
d = snapshot_download("huypham71/esg-claim")
cfg = json.load(open(f"{d}/config.json"))
model = MultiHeadTrainer(cfg).load(d)
probs = model.predict_proba(["câu tiếng Việt ..."]) # tự word-segment bên trong
- Downloads last month
- 6