CoolFace
Modelpublic

LocalLaws/LOCUS-Enforcement-Discretion

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
1likes7downloads
Model Card

LocalLaws/LOCUS-Enforcement-Discretion

A ModernBERT regression model that scores local-ordinance text along the Enforcement Discretion axis of the LOCUS (Local Ordinances Corpus, United States) dataset.

Fine-tuned from answerdotai/ModernBERT-base. The target is a TrueSkill mu distilled from pairwise LLM comparisons on the enforcement discretion axis, then z-score normalized across the training corpus.

Usage

python
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

tok = AutoTokenizer.from_pretrained("LocalLaws/LOCUS-Enforcement-Discretion")
model = AutoModelForSequenceClassification.from_pretrained("LocalLaws/LOCUS-Enforcement-Discretion")
model.eval()

text = "No person shall keep any swine within the city limits."
enc = tok(text, return_tensors="pt", truncation=True, max_length=2048)
with torch.no_grad():
    score = model(**enc).logits.squeeze(-1).item()
print(score)