How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="nprasann/synthetic-public-sector-ticket-classifier")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("nprasann/synthetic-public-sector-ticket-classifier")
model = AutoModelForSequenceClassification.from_pretrained("nprasann/synthetic-public-sector-ticket-classifier", device_map="auto")
Quick Links

Synthetic Public Sector Ticket Classifier

This is a compact Hugging Face Transformers text-classification model for synthetic public-sector helpdesk tickets. It predicts one of six labels: policy_question, login_issue, incident_report, training_request, data_privacy, or document_access.

GitHub repository: https://github.com/nprasann/synthetic-public-sector-ticket-classifier

Intended Use

  • Educational demonstrations of safe text-classification workflows.
  • Local experiments with synthetic helpdesk routing examples.
  • Testing Hugging Face model save/load and publishing flows.

Out-of-Scope Use

Do not use this model for production routing, legal decisions, benefits decisions, HR decisions, privacy determinations, security incident response, or authoritative public-sector advice.

Dataset Description

The repository contains synthetic JSONL data only:

  • data/train.jsonl: 60 examples.
  • data/validation.jsonl: 18 examples.
  • data/test.jsonl: 18 examples.

The data is written to avoid real client data, employee data, agency case details, credentials, internal URLs, logs, IP addresses, and regulated information.

Training Procedure

The model artifacts in this repository were produced with python -m model.train --epochs 200 --batch-size 8 --learning-rate 0.001 --output-dir model.

The training script builds a small BERT-style sequence classifier from configuration and trains a word-level tokenizer from the synthetic repository data. No external pretrained checkpoint is downloaded by model.train.

Evaluation Metrics

Validation split metrics from the packaged training run:

Metric Value
Accuracy 0.6111111111111112
Macro F1 0.5962962962962962

These metrics are from a very small synthetic validation split and should not be interpreted as real-world performance.

Limitations and Ethical Considerations

  • The dataset is small and synthetic.
  • The model may be brittle on wording outside the examples.
  • The model may be overconfident.
  • It has not been evaluated for demographic fairness.
  • Human review is required for any consequential workflow.

Example Inference

from transformers import pipeline

classifier = pipeline(
    "text-classification",
    model="nprasann/synthetic-public-sector-ticket-classifier",
    tokenizer="nprasann/synthetic-public-sector-ticket-classifier",
)

print(classifier("I cannot access the policy document library."))
Downloads last month
11
Safetensors
Model size
216k params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Evaluation results

  • Accuracy on Repository synthetic validation split
    self-reported
    0.611
  • Macro F1 on Repository synthetic validation split
    self-reported
    0.596