Token Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
pii
pii-detection
secret-detection
dlp
ai-agents
security
guardrails
presidio
llm-guard
litellm
nemo-guardrails
open-webui
data-loss-prevention
Instructions to use Tamarillo/pii-secrets-guard-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tamarillo/pii-secrets-guard-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Tamarillo/pii-secrets-guard-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Tamarillo/pii-secrets-guard-base") model = AutoModelForTokenClassification.from_pretrained("Tamarillo/pii-secrets-guard-base", device_map="auto") - Transformers.js
How to use Tamarillo/pii-secrets-guard-base with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'Tamarillo/pii-secrets-guard-base'); - Notebooks
- Google Colab
- Kaggle
Download integration_check.json from Tamarillo/pii-secrets-guard-base: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/Tamarillo/pii-secrets-guard-base/resolve/main/integration_check.json
- Command line
-
hf download hf://Tamarillo/pii-secrets-guard-base/integration_check.json
-
curl -L -o integration_check.json https://huggingface.co/Tamarillo/pii-secrets-guard-base/resolve/main/integration_check.json
1.01 kB
| { | |
| "transformers_pipeline": { | |
| "ok": true, | |
| "entities": [ | |
| [ | |
| "PERSON", | |
| " Elena Vargas" | |
| ], | |
| [ | |
| "EMAIL_ADDRESS", | |
| " elena.vargas@acme-fin.io" | |
| ], | |
| [ | |
| "API_KEY", | |
| "sk-proj-AbCdEf1234567890GhIjKlMnOpQrStUvWxYz0123456789" | |
| ], | |
| [ | |
| "DATABASE_URI", | |
| "postgresql://app:MyS3cretPass!@db.internal:5432/prod" | |
| ] | |
| ] | |
| }, | |
| "onnxruntime": { | |
| "ok": true, | |
| "non_o_tokens": 72 | |
| }, | |
| "presidio": { | |
| "ok": true, | |
| "detected": [ | |
| [ | |
| "EMAIL_ADDRESS", | |
| "elena.vargas@acme-fin.io" | |
| ], | |
| [ | |
| "DATABASE_URI", | |
| "DB=postgresql://app:MyS3cretPass!@db.internal:5432/prod" | |
| ], | |
| [ | |
| "EMAIL_ADDRESS", | |
| "elena.vargas@acme-fin.io." | |
| ], | |
| [ | |
| "PERSON", | |
| "Elena Vargas" | |
| ], | |
| [ | |
| "URL", | |
| "elena.va" | |
| ], | |
| [ | |
| "URL", | |
| "acme-fin.io" | |
| ], | |
| [ | |
| "URL", | |
| "db.int" | |
| ] | |
| ] | |
| } | |
| } |