Smith-Pincette-Nitro v0.55
Browse filesFiles changed (3)
- README.md+12-11
- calibrated_thresholds.json+35-35
- model.onnx+2-2
10 unmodified lines11121314151617181920212223242511 unmodified lines3738394041424320 unmodified lines6465666768697071727374754 unmodified lines808182838485868788899091929394959697989910010 unmodified lines- onnx---# Smith-Pincette-Nitro v0.5-previewPart 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-Nitro is the fast tier, small enough for CPU and high volume.**This is a preview release**: expect rough edges, and expect the models and API to change. See also [Smith-Pincette-Sprint](https://huggingface.co/Holocortex/Smith-Pincette-Sprint).| | || :--- | :--- || Version | v0.5-preview || Parameters | 146.7M || Encoder | [`jhu-clsp/mmBERT-small`](https://huggingface.co/jhu-clsp/mmBERT-small) + Smith-Pincette span heads || Classes | 43 (table below) |11 unmodified lines```pythonfrom smith_pincette import SmithPincettemodel = SmithPincette.from_pretrained("Holocortex/Smith-Pincette-Nitro", revision="v0.5-preview")text = "Please refund Maria Schneider (maria.schneider@example.com), IBAN DE89 3704 0044 0532 0130 00."for span in model.detect(text):20 unmodified lines| Dates, time, numbers | `date`, `time`, `quantity` |`model.detect(text, labels={"email", "iban"})` keeps only some classes. Every class has its own calibrated threshold;`model.detect(text, threshold=0.4)` replaces them with one flat cutoff.## How it worksA multilingual encoder with span-extraction heads, shipped as one ONNX graph. Decoding applies calibrated per-classthresholds and returns the best non-overlapping set of spans.## Intended use and limitations4 unmodified lines- The credential classes (`password`, `secret_key`, `jwt_token`, `private_key`, `hostname_or_endpoint`) areexperimental in this preview and miss many values, especially in config and log lines. Do not use the model as asecret scanner.- Best covered languages are English and German; other languages work to a lesser degree.## Training dataAbout 230,000 documents, none of them collected from real people:- **Generated documents** (most of the data): fully generated templates for tickets, forms, emails, chats, logs,contracts and similar texts, filled with synthetic values (names, addresses, IDs, bank details, ...), and documentswritten by [Qwen3.8-27B](https://huggingface.co/Qwen) (Apache-2.0) in several languages.- **Wikipedia passages** in several languages, as real-world text, labeled automatically.Wikipedia content is available under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/); we thankthe 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; overlap with public benchmarks was checked and is zero.## Files10 unmodified lines11121314151617181920212223242511 unmodified lines3738394041424320 unmodified lines64656667686970717273744 unmodified lines79808182838485868788899091929394959697989910010110 unmodified lines- onnx---# Smith-Pincette-Nitro v0.55Part 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-Nitro is the fast default, with calibrated per-class thresholds.**This is a preview release**: expect rough edges, and expect the models and API to change. See also [Smith-Pincette-Sprint](https://huggingface.co/Holocortex/Smith-Pincette-Sprint).| | || :--- | :--- || Version | v0.55 || Parameters | 146.7M || Encoder | [`jhu-clsp/mmBERT-small`](https://huggingface.co/jhu-clsp/mmBERT-small) + Smith-Pincette span heads || Classes | 43 (table below) |11 unmodified lines```pythonfrom smith_pincette import SmithPincettemodel = SmithPincette.from_pretrained("Holocortex/Smith-Pincette-Nitro", 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):20 unmodified lines| Dates, time, numbers | `date`, `time`, `quantity` |`model.detect(text, labels={"email", "iban"})` keeps only some classes. Every class has its own calibrated threshold;`model.detect(text, threshold=0.4)` sets one flat cutoff instead.## How it worksA multilingual encoder with span-extraction heads, shipped as one ONNX graph. Decoding applies calibrated per-class thresholds and returns the best non-overlapping set of spans.## Intended use and limitations4 unmodified lines- The credential classes (`password`, `secret_key`, `jwt_token`, `private_key`, `hostname_or_endpoint`) areexperimental in this preview and miss many values, especially in config and log lines. Do not use the model as asecret scanner.- Very dense text (many values per window, such as long customer lists) is recalled less well; split it into smaller records.- Best covered languages are English and German; other languages work to a lesser degree.## Training dataSynthetic documents plus Wikipedia 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](https://huggingface.co/Qwen) (Apache-2.0) in several languages.- **Wikipedia passages** in several languages, as real-world text, labeled automatically.Wikipedia content is available under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/); we thankthe 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 publicbenchmarks we check. Some short lines (such as boilerplate and formulaic phrases) occur in both.## Files
123456789101112131415161718192021222324252627282930313233343536373839404142434445{"account_id": 0.7,"age": 0.15,"bank_account": 0.8,"card_cvv": 0.4,"card_expiry": 0.05,"city": 0.8,"coordinate": 0.35,"country": 0.2,"credit_card_number": 0.05,"crypto_address": 0.4,"currency": 0.25,"date": 0.15,"date_of_birth": 0.05,"drivers_license_number": 0.8,"education_level": 0.75,"email": 0.8,"gender": 0.05,"hostname_or_endpoint": 0.1,"iban": 0.1,"ip_address": 0.4,"jwt_token": 0.2,"license_number": 0.05,"mac_address": 0.8,"medical_condition": 0.05,"national_id": 0.15,"nationality": 0.1,"occupation": 0.05,"organization": 0.25,"passport_number": 0.8,"password": 0.1,"person": 0.35,"phone_number": 0.15,"postal_code": 0.75,"private_key": 0.35,"quantity": 0.5,"routing_number": 0.7,"secret_key": 0.55,"ssn": 0.8,"state_or_region": 0.6,"street_address": 0.75,"tax_id": 0.35,"time": 0.45,"username": 0.3}123456789101112131415161718192021222324252627282930313233343536373839404142434445{"account_id": 0.45,"age": 0.65,"bank_account": 0.7,"card_cvv": 0.35,"card_expiry": 0.8,"city": 0.55,"coordinate": 0.45,"country": 0.8,"credit_card_number": 0.8,"crypto_address": 0.8,"currency": 0.05,"date": 0.05,"date_of_birth": 0.4,"drivers_license_number": 0.8,"education_level": 0.8,"email": 0.8,"gender": 0.15,"hostname_or_endpoint": 0.8,"iban": 0.2,"ip_address": 0.8,"jwt_token": 0.1,"license_number": 0.05,"mac_address": 0.8,"medical_condition": 0.05,"national_id": 0.7,"nationality": 0.1,"occupation": 0.1,"organization": 0.1,"passport_number": 0.05,"password": 0.1,"person": 0.45,"phone_number": 0.05,"postal_code": 0.65,"private_key": 0.45,"quantity": 0.6,"routing_number": 0.05,"secret_key": 0.65,"ssn": 0.8,"state_or_region": 0.4,"street_address": 0.5,"tax_id": 0.15,"time": 0.05,"username": 0.2}
123version https://git-lfs.github.com/spec/v1oid sha256:63a9fe82144b84be62ecd1ca09ab3d2069fff07e1ecbdf2d6a9dc72b6bf00109size 593105068123version https://git-lfs.github.com/spec/v1oid sha256:5f80fc6263454138c05af684f518e5d1b08773956f4b542bd10e2401c0c8c8cfsize 593105126
README.md+12-11
calibrated_thresholds.json+35-35
model.onnx+2-2