Token Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
pii
pii-detection
redaction
anonymization
privacy
secrets-detection
data-masking
ner
presidio
mmbert
Instructions to use Horizon-Labs/pii-redactor-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Horizon-Labs/pii-redactor-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Horizon-Labs/pii-redactor-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Horizon-Labs/pii-redactor-base") model = AutoModelForTokenClassification.from_pretrained("Horizon-Labs/pii-redactor-base", device_map="auto") - Transformers.js
How to use Horizon-Labs/pii-redactor-base with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'Horizon-Labs/pii-redactor-base'); - Notebooks
- Google Colab
- Kaggle
Commit History
-
code: evaluate_pii.py with the Oct 2026 third-party benchmarks
Verified signature5814384
-
PII Redactor base v1.0
Verified signature352e0d8