Downloads · 30 days
108
3% of all-time downloads
tanaos/tanaos-text-anonymizer-v1
tanaos-text-anonymizer-v1 is a token classification model from tanaos. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
<p align="center" <img src="https://raw.githubusercontent.com/tanaos/.github/master/assets/logo.png" width="250px" alt="Tanaos – Train task specific LLMs without training data, for offline NLP and Text Classification"…
Downloads · 30 days
108
3% of all-time downloads
All-time downloads
3.3K
Public
Parameters
124M
496 MB on disk
Likes
129
Public
Click a slice to open those files.
.safetensors496 MB · 99%
From the Hugging Face model README
This model was created by Tanaos with the Artifex Python library.
This is a Named Entity Recognition model based on tanaos/tanaos-NER-v1 and fine-tuned on a synthetic dataset to recognize Personal Identifiable Information (PII) entities in text. Once identified, the entities are redacted to ensure privacy and confidentiality, before sharing or processing text data.
While the base NER model was trained to recognize 14 named entity categories, this Text Anonymization was fine-tuned specifically to focus on the following 5 key PII entity categories that are commonly found in text data and are critical for anonymization:
| Entity | Description |
|---|---|
PERSON | Individual people, fictional characters |
LOCATION | Geographical areas |
DATE | Absolute or relative dates, including years, months and/or days |
ADDRESS | Full addresses |
PHONE_NUMBER | Telephone numbers |
Use this model through the Artifex library:
install Artifex with
pip install artifex
use the model with
from artifex import Artifex
ta = Artifex().text_anonymization()
anonymized_text = ta("John Doe lives at 123 Main St, New York. His phone number is (555) 123-4567.")
print(anonymized_text)
# >>> ["[MASKED] lives at [MASKED]. His phone number is [MASKED]."]
FacebookAI/roberta-baseThis model was trained using the Artifex Python library
pip install artifex
by providing the following instructions and generating 10,000 synthetic training samples:
from artifex import Artifex
ta = Artifex().text_anonymization()
ta.train(
domain="general",
num_samples=10000
)
This model is intended to:
Not intended for: