Belgin Privacy Filter is a Turkish-focused LoRA adapter for openai/privacy-filter. It detects privacy-sensitive spans in Turkish complaint and customer-support style text so downstream systems can mask values such as <private_person>, <private_email>, <private_phone>, <account_number>, and <secret>.
This repository contains a PEFT adapter, not a standalone model. Load it on top of the original openai/privacy-filter base model and review the base model card, license, and usage terms before deployment.
Model type: PEFT LoRA adapter for token classification
Primary language: Turkish
Task: PII/privacy span detection
Recommended decode policy: strict BIOES decoding
License: Apache 2.0
The adapter keeps the base model label space:
private_person
private_address
private_email
private_phone
private_url
private_date
account_number
secret
The model uses BIOES boundary tags internally. Each privacy category can appear as B-, I-, E-, or S- variants, plus the background class O.
Public Dataset
The public companion dataset is negentropi/belgin-pii-dataset. It is a synthetic Turkish hard-case release intended for testing and improving PII masking behavior.
The model was trained with a broader internal hardmix that included sanitized/syntheticized complaint-support style context and synthetic hard cases. The public dataset intentionally excludes raw complaint text, source IDs, scraped records, and private user content.
Intended Use
Use this adapter as one layer in a Turkish PII/KVKK filtering pipeline:
run the model on Turkish text,
decode spans with strict BIOES rules,
merge and normalize predicted spans,
expand structured identifiers when policy allows,
apply deterministic post-processing for emails, phones, account IDs, TCKN-like values, IBAN-like values, OTP/CVV/PIN codes, and token-like secrets,
apply product-specific allow/block policy for public dates, support numbers, company emails, organization names, and public contact details.
Good fit:
masking private data in Turkish complaint/support records,
removing PII before analytics, indexing, logging, or dataset preparation,
regression testing a Turkish privacy filtering pipeline.
Not a good fit:
using it as the only privacy or compliance control,
legal determinations about KVKK/GDPR compliance,
deanonymization, profiling, or identity resolution,
publishing text only because the model returned no spans,
high-risk use without in-domain evaluation and human review.
For production masking, use strict BIOES span decoding plus a deterministic post-processing layer rather than raw argmax token labels alone.
Decoding Recommendation
This adapter was selected and evaluated with strict exact span matching. Strict BIOES decoding is recommended for deployment.
Repair/start decoding is not recommended as the default deployment mode. In validation, it was substantially less precise because invalid BIOES fragments can become false-positive spans.