Downloads · 30 days
0
alirezaaminzadeh/permitguard-risk-classifier
permitguard-risk-classifier is a text classification model from alirezaaminzadeh. Use it when you need a label for a piece of text. It is set up for sklearn. The card lists the license as mit.
Text-only bilingual (FA/EN) risk-level and work-type classifiers for synthetic Permit-to-Work narratives. Ground-truth risk comes from 13 deterministic, auditable rules on structured fields; the model sees only free t…
Downloads · 30 days
0
Access
Public
Updated Sep 10, 2026
Repo size
980 KB
Likes
0
Public
Click a slice to open those files.
.joblib980 KB · 97%
From the Hugging Face model README
Text-only bilingual (FA/EN) risk-level and work-type classifiers for synthetic Permit-to-Work
narratives. Ground-truth risk comes from 13 deterministic, auditable rules on structured fields;
the model sees only free text, so it is scored on whether it can recover that rule-derived label
(including the designed ~19% text/flag mismatches). Part of Aria AI
Aria SafeOps → Control of Work.
Trained only on permitguard-ptw-samples
— 100% synthetic, no real permits. Do not treat the numbers below as field PTW performance.
| Task | Metric | Value |
|---|---|---|
| Risk level (low/medium/high/critical) | Accuracy | 88.8% |
| Risk level | Macro-F1 | 0.866 |
| Risk level | Critical recall | 92.0% (23/25) |
| Work type (7 classes) | Accuracy | 100% |
Work-type accuracy is 100% because the synthetic narratives name the work type in the first sentence (by design, for a readable demo). It is not a claim that work-type NER is solved in the field. Critical recall is the headline safety metric; the two misses are consistent with the designed text/flag mismatch slice.
SIMOPS is a deterministic rule engine, not this sklearn model. 260 pairs, 50% conflict, five rules (SIMOPS-01…05) each fired 26 times. Precision/recall vs those labels would be circular 100% and is therefore not reported as a learned KPI.
tfidf_vectorizer.joblib — word (1–2gram) + char_wb (3–5gram) TF-IDFrisk_classifier.joblib — multinomial Logistic Regression (balanced)worktype_classifier.joblib — same features → 7 work typeseval_results.json / benchmark_report.json / manifest.jsonInference also applies a small keyword prior (ContractGuard-style): if the text explicitly says a
critical precaution was not done, critical probability is boosted. See src/permitguard/models.py.
MIT · Aria AI Engineering Team