Downloads · 30 days
23
27% of all-time downloads
SilentguardAI/tanaos-text-anonymizer-onnx
tanaos-text-anonymizer-onnx is a token classification model from SilentguardAI. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
Named Entity Recognition model for PII detection. Quantized int8 ONNX format optimized for browser inference.
Downloads · 30 days
23
27% of all-time downloads
All-time downloads
84
Public
Repo size
125 MB
Likes
0
Public
Click a slice to open those files.
.onnx125 MB · 96%
From the Hugging Face model README
Named Entity Recognition model for PII detection. Quantized int8 ONNX format optimized for browser inference.
| Entity | Description |
|---|---|
| PERSON | Names of people |
| LOCATION | Geographic locations |
| ADDRESS | Street addresses |
| PHONE_NUMBER | Phone numbers |
| DATE | Dates and time expressions |
import { pipeline } from '@huggingface/transformers';
const ner = await pipeline(
'token-classification',
'teimurjan/tanaos-text-anonymizer-onnx',
{ device: 'wasm' }
);
const result = await ner(
'John Doe lives at 123 Main St, New York. His phone is (555) 123-4567.',
{ aggregation_strategy: 'first' }
);
console.log(result);
// [
// { entity_group: 'PERSON', word: 'John Doe', score: 0.99 },
// { entity_group: 'ADDRESS', word: '123 Main St', score: 0.98 },
// { entity_group: 'LOCATION', word: 'New York', score: 0.97 },
// { entity_group: 'PHONE_NUMBER', word: '(555) 123-4567', score: 0.99 }
// ]
Apache 2.0 (following the original model license)