Smith-Pincette-Sprint v0.55
Part of the Smith-Pincette Model Family: compact models that extract exact spans of personal data (names, contact details, addresses, ID and bank numbers, and more) from text, so it can be masked before it reaches logs, LLMs or third parties. Smith-Pincette-Sprint is a new architecture on the same small encoder as Nitro, with the same 43 classes. This is a preview release: expect rough edges, and expect the models and API to change. See also Smith-Pincette-Nitro.
| Version | v0.55 |
| Parameters | 150.5M |
| Encoder | jhu-clsp/mmBERT-small + Smith-Pincette span heads |
| Classes | 43 (table below) |
| Input | any length; processed in 512-token windows with 128-token overlap |
| Output | character-offset spans (start, end, label, score), non-overlapping |
| Format | ONNX, runs with onnxruntime on CPU or CUDA GPU, fully local |
| License | Apache-2.0 |
Quickstart
pip install "git+https://github.com/holocortex/Smith-Pincette-Models"
from smith_pincette import SmithPincette
model = SmithPincette.from_pretrained("Holocortex/Smith-Pincette-Sprint", revision="v0.55")
text = "Please refund Maria Schneider (maria.schneider@example.com), IBAN DE89 3704 0044 0532 0130 00."
for span in model.detect(text):
print(span.label, span.score, span.text)
print(model.mask(text))
# Please refund [PERSON] ([EMAIL]), IBAN [IBAN].
More examples (CLI masking, JSONL batches, reversible masking for LLM prompts, a local MCP server for agents): https://github.com/holocortex/Smith-Pincette-Models.
Classes
| Group | Classes |
|---|---|
| Government IDs | ssn, national_id, passport_number, drivers_license_number, license_number, tax_id |
| Banking & payment | credit_card_number, card_expiry, card_cvv, iban, bank_account, routing_number, currency |
| Credentials & endpoints (experimental) | password, secret_key, jwt_token, private_key, hostname_or_endpoint |
| Digital identity | crypto_address, ip_address, username, account_id, mac_address |
| Person | person, date_of_birth, occupation, age, gender, education_level |
| Contact & location | email, phone_number, street_address, city, state_or_region, postal_code, country, nationality, coordinate |
| Organization, health | organization, medical_condition |
| Dates, time, numbers | date, time, quantity |
model.detect(text, labels={"email", "iban"}) keeps only some classes. Every class uses a threshold of 0.5;
model.detect(text, threshold=0.4) sets one flat cutoff instead.
How it works
A multilingual encoder with span-extraction heads, shipped as one ONNX graph. Decoding scores up to 64 candidates per window, adjusts their boundaries, and removes overlaps (highest score wins).
Intended use and limitations
- Intended for detecting and masking sensitive data in text you control: support tickets, chat and LLM prompts, emails, forms and documents.
- It is a statistical model. It will miss some sensitive values and flag some harmless ones. Do not use it as the only safeguard where a leak has legal or safety consequences.
- The credential classes (
password,secret_key,jwt_token,private_key,hostname_or_endpoint) are experimental in this preview and miss many values, especially in config and log lines. Do not use the model as a secret scanner. - It returns at most 64 spans per 512-token window: values beyond that in very dense text (such as long customer lists) are missed. Split such text into smaller records.
- Best covered languages are English and German; other languages work to a lesser degree.
Training data
Synthetic documents plus real public text:
- Generated documents (most of the data): fully generated templates for tickets, forms, emails, chats, logs, contracts, invoices and similar texts, filled with synthetic values (names, addresses, IDs, bank details, secrets, ...), and documents and chats written by Qwen3.8-27B (Apache-2.0) in several languages.
- Public text, labeled automatically: Wikipedia, FineWeb / FineWeb-2 and FineWeb-Edu, CC-News, arXiv and PubMed abstracts, Project Gutenberg books and Stack Exchange posts. This text is not distributed with the model. Wikipedia content is available under CC BY-SA 4.0; we thank the Wikipedia contributors.
- Labels come from the generators themselves and from automatic annotation by Apache-2.0 models.
No benchmark test data was used for training on purpose, and no training document is identical to a document of the public benchmarks we check. Some short lines (such as boilerplate and formulaic phrases) occur in both.
Files
| File | Content |
|---|---|
model.onnx |
the model (runs with onnxruntime, no PyTorch needed) |
tokenizer.json |
tokenizer |
config.json |
class names per output slot, window size |
calibrated_thresholds.json |
per-class decision thresholds |
Support
Provided as is, without support or warranty. Bug reports are welcome as GitHub issues; there is no guaranteed response.
License
Apache-2.0. The encoder weights it builds on (jhu-clsp/mmBERT-small) are MIT-licensed.
- Downloads last month
- 9
Model tree for Holocortex/Smith-Pincette-Sprint
Base model
jhu-clsp/mmBERT-small