Instructions to use ankitcodes/pii_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ankitcodes/pii_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ankitcodes/pii_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ankitcodes/pii_model") model = AutoModelForTokenClassification.from_pretrained("ankitcodes/pii_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files21 unmodified lines2223242526272821 unmodified lines`ankitcodes/pii_model` is a token-classification model that finds personally identifiable information (PII) in English text. It is a fine-tune of [`google-bert/bert-base-cased`](https://huggingface.co/google-bert/bert-base-cased) (about 0.1B parameters, Safetensors, F32) and predicts 31 entity types, such as names, addresses, emails, phone numbers and card numbers.> **It does not catch all PII.** Use it as one layer of protection, not as the only safeguard for privacy or legal compliance. Always test it on your own data first.## Intended use21 unmodified lines22232425262721 unmodified lines`ankitcodes/pii_model` is a token-classification model that finds personally identifiable information (PII) in English text. It is a fine-tune of [`google-bert/bert-base-cased`](https://huggingface.co/google-bert/bert-base-cased) (about 0.1B parameters, Safetensors, F32) and predicts 31 entity types, such as names, addresses, emails, phone numbers and card numbers.## Intended use
README.md-1