anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Finds and masks personal information such as names and emails in text in a single pass, and runs on your own machine. For teams that need to clean large amounts of text on-premises.
OpenAI Privacy Filter is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download openai/privacy-filter
OpenAI Privacy Filter is a model that finds personally identifiable information in text and marks it so it can be masked. It reads a whole input at once and labels each token, then decodes clean spans from those labels.
It is built for data sanitization jobs where a team wants a model it can run on its own hardware, with settings it can tune.
It suits developers and data teams who must strip names, emails and similar details from text before they store, share or train on it.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers | Add a masking step to a text pipeline | Hide names in logs before sharing |
| Data teams | Data engineers | Clean large text sets before training | Remove emails from a corpus |
| Support | Operations teams | Redact personal details in tickets | Mask a name in a customer message |
| Research | ML engineers | Fine-tune the filter on their own data | Adapt it to a new text style |
If your text never holds personal details, or you need a filter for images or audio, you can skip it.
The model works in Python with the transformers library and in JavaScript with transformers.js, where the card shows it running with WebGPU.
| Use case | Who | What they get back |
|---|---|---|
| PII detection | Developers | Labeled spans such as private_person and private_email |
| Text masking | Data teams | Text with personal details marked for removal |
| On-premises cleaning | Security teams | Sanitized data that never leaves your servers |
You need Python with the transformers library and PyTorch, or a JavaScript project with transformers.js. The weights come to about 2.8 GB in BF16.
pip install -U huggingface_hub hf download openai/privacy-filter
You pass text to a token-classification pipeline and read the labeled spans it returns.
from transformers import pipeline
classifier = pipeline(
task="token-classification",
model="openai/privacy-filter",
)
classifier("My name is Alice Smith")| Tool | What it does |
|---|---|
| pipeline | Runs token classification in a single call |
| AutoModelForTokenClassification | Gives direct access to the logits and labels |
| AutoTokenizer | Turns your text into model inputs |
You send the sentence "My name is Alice Smith" to the classifier. It labels the name as a private person, so you can replace that span with a mask.
If you are new, run the short Python snippet above on one sentence with a name in it and read the labels that come back. That shows what the filter detects.
If you know the field, it is an autoregressive checkpoint converted into a bidirectional banded-attention token classifier, with a sparse mixture-of-experts feed-forward stack. Inference uses constrained Viterbi decoding to produce BIOES span labels.
The card lists a 128,000-token context window, so long text needs no chunking. It also describes preset operating points that trade precision against recall.
Finds and masks personal information such as names and emails in text in a single pass, and runs on your own machine. For teams that need to clean large amounts of text on-premises.
Made by openai on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: OpenAI Privacy Filter is a model that finds personally identifiable information in text and marks it so it can be masked. It reads a whole input at once and labels each token, then decodes clean spans from those labels.
It is built for data sanitization jobs where a team wants a model it can run on its own hardware, with settings it can tune.
Who it suits: It suits developers and data teams who must strip names, emails and similar details from text before they store, share or train on it.
Industry | Who uses it | How they use it | Example
Software | Developers | Add a masking step to a text pipeline | Hide names in logs before sharing
Data teams | Data engineers | Clean large text sets before training | Remove emails from a corpus
Support | Operations teams | Redact personal details in tickets | Mask a name in a customer message
Research | ML engineers | Fine-tune the filter on their own data | Adapt it to a new text style
If your text never holds personal details, or you need a filter for images or audio, you can skip it.
Where to use it: The model works in Python with the transformers library and in JavaScript with transformers.js, where the card shows it running with WebGPU.
Use case | Who | What they get back
PII detection | Developers | Labeled spans such as private_person and private_email
Text masking | Data teams | Text with personal details marked for removal
On-premises cleaning | Security teams | Sanitized data that never leaves your servers
How to set it up: You need Python with the transformers library and PyTorch, or a JavaScript project with transformers.js. The weights come to about 2.8 GB in BF16.
pip install -U huggingface_hub
hf download openai/privacy-filter
How to use it: You pass text to a token-classification pipeline and read the labeled spans it returns.
from transformers import pipeline
classifier = pipeline(
task="token-classification",
model="openai/privacy-filter",
)
classifier("My name is Alice Smith")
Tool | What it does
pipeline | Runs token classification in a single call
AutoModelForTokenClassification | Gives direct access to the logits and labels
AutoTokenizer | Turns your text into model inputs
Example: You send the sentence "My name is Alice Smith" to the classifier. It labels the name as a private person, so you can replace that span with a mask.
For newcomers and experts: If you are new, run the short Python snippet above on one sentence with a name in it and read the labels that come back. That shows what the filter detects.
If you know the field, it is an autoregressive checkpoint converted into a bidirectional banded-attention token classifier, with a sparse mixture-of-experts feed-forward stack. Inference uses constrained Viterbi decoding to produce BIOES span labels.
Text is tokenized
One forward pass labels every token
Viterbi decoding builds spans
Spans are masked or removed
Good to know: The card lists a 128,000-token context window, so long text needs no chunking. It also describes preset operating points that trade precision against recall.
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download openai/privacy-filter
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| OpenAI Privacy Filter This page | 102,911 | 1,831 | 1.4B | apache-2.0 | |
| bert-base-NERShares token-classification · onnx · transformers | 1,038,928 | 750 | 108M | mit | |
| UltraBERT-150M-clairic-extractionShares token-classification · onnx · transformers | 138 | 5 | 151M | apache-2.0 | |
| nomic-embed-text-v1.5Shares transformers.js · onnx · transformers | 11,809,681 | 994 | 137M | apache-2.0 | |
| SmolLM2-135M-InstructShares transformers.js · onnx · transformers | 841,106 | 474 | 135M | apache-2.0 | |
| Distil-Whisper distil-large-v3Shares transformers.js · onnx · transformers | 754,155 | 386 | 756M | mit |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.