Token Classification
Transformers
ONNX
Safetensors
English
distilbert
pii
privacy
experimental
datafog
Instructions to use DataFog/pii-en-65m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DataFog/pii-en-65m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="DataFog/pii-en-65m")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("DataFog/pii-en-65m") model = AutoModelForTokenClassification.from_pretrained("DataFog/pii-en-65m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download bundle/config.json from DataFog/pii-en-65m: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/DataFog/pii-en-65m/resolve/main/bundle/config.json
- Command line
-
hf download hf://DataFog/pii-en-65m/bundle/config.json
-
curl -L -o config.json https://huggingface.co/DataFog/pii-en-65m/resolve/main/bundle/config.json
535 Bytes
| { | |
| "labels": [ | |
| "first_name", | |
| "last_name", | |
| "email", | |
| "phone_number", | |
| "street_address", | |
| "customer_id", | |
| "account_number" | |
| ], | |
| "max_length": 512, | |
| "stride": 42, | |
| "model_revision": "6ea81172465e8b0ad3fddeed32b986cdcdcffcf0", | |
| "dataset_revision": "b70ffaf5ff39e079776134c5bf4381f00a9fd1ed", | |
| "offsets": "half-open UTF-8 bytes", | |
| "raw_score": "minimum predicted-class token softmax within span", | |
| "status": "experimental prototype; demonstration threshold only", | |
| "calibration_file": "calibration.json" | |
| } | |