Token Classification
Transformers
Safetensors
English
roberta
hipaa
phi
protected-health-information
safe-harbor
de-identification
healthcare
medical-records
pii-detection
ner
redaction
privacy
Synthetic
Run this model with HF Jobs
Run aitrainingdatabroker/hipaa-phi-detector on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/aitrainingdatabroker/hipaa-phi-detector. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/aitrainingdatabroker/hipaa-phi-detector on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use aitrainingdatabroker/hipaa-phi-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aitrainingdatabroker/hipaa-phi-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="aitrainingdatabroker/hipaa-phi-detector")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("aitrainingdatabroker/hipaa-phi-detector") model = AutoModelForTokenClassification.from_pretrained("aitrainingdatabroker/hipaa-phi-detector", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model weights and tokenizer
Browse filesFiles changed (7)
- config.jsonAdded+97
- merges.txtAdded
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+15
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+57
- vocab.jsonAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697{
"_name_or_path": "distilroberta-base",
"architectures": [
"RobertaForTokenClassification"
],
"attention_probs_dropout_prob": 0.1,
"bos_token_id": 0,
"classifier_dropout": null,
"eos_token_id": 2,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"id2label": {
"0": "O",
"1": "B-ACCOUNT_NUMBER",
"2": "I-ACCOUNT_NUMBER",
"3": "B-ADDRESS",
"4": "I-ADDRESS",
"5": "B-AGE_OVER_89",
"6": "I-AGE_OVER_89",
"7": "B-DATE",
"8": "I-DATE",
"9": "B-DEVICE_ID",
"10": "I-DEVICE_ID",
"11": "B-EMAIL",
"12": "I-EMAIL",
"13": "B-FAX",
"14": "I-FAX",
"15": "B-HEALTH_PLAN_ID",
"16": "I-HEALTH_PLAN_ID",
"17": "B-IP_ADDRESS",
"18": "I-IP_ADDRESS",
"19": "B-LICENSE_NUMBER",
"20": "I-LICENSE_NUMBER",
"21": "B-MRN",
"22": "I-MRN",
"23": "B-NAME",
"24": "I-NAME",
"25": "B-PHONE",
"26": "I-PHONE",
"27": "B-SSN",
"28": "I-SSN",
"29": "B-URL",
"30": "I-URL",
"31": "B-VEHICLE_ID",
"32": "I-VEHICLE_ID"
},
"initializer_range": 0.02,
"intermediate_size": 3072,
"label2id": {
"B-ACCOUNT_NUMBER": 1,
"B-ADDRESS": 3,
"B-AGE_OVER_89": 5,
"B-DATE": 7,
"B-DEVICE_ID": 9,
"B-EMAIL": 11,
"B-FAX": 13,
"B-HEALTH_PLAN_ID": 15,
"B-IP_ADDRESS": 17,
"B-LICENSE_NUMBER": 19,
"B-MRN": 21,
"B-NAME": 23,
"B-PHONE": 25,
"B-SSN": 27,
"B-URL": 29,
"B-VEHICLE_ID": 31,
"I-ACCOUNT_NUMBER": 2,
"I-ADDRESS": 4,
"I-AGE_OVER_89": 6,
"I-DATE": 8,
"I-DEVICE_ID": 10,
"I-EMAIL": 12,
"I-FAX": 14,
"I-HEALTH_PLAN_ID": 16,
"I-IP_ADDRESS": 18,
"I-LICENSE_NUMBER": 20,
"I-MRN": 22,
"I-NAME": 24,
"I-PHONE": 26,
"I-SSN": 28,
"I-URL": 30,
"I-VEHICLE_ID": 32,
"O": 0
},
"layer_norm_eps": 1e-05,
"max_position_embeddings": 514,
"model_type": "roberta",
"num_attention_heads": 12,
"num_hidden_layers": 6,
"pad_token_id": 1,
"position_embedding_type": "absolute",
"torch_dtype": "float32",
"transformers_version": "4.46.3",
"type_vocab_size": 1,
"use_cache": true,
"vocab_size": 50265
}123version https://git-lfs.github.com/spec/v1oid sha256:ddf18b21215bf1b79b7191f602b8e36e871a08ec75a1851cf36cda4ed1012d3bsize 326225060123456789101112131415{
"bos_token": "<s>",
"cls_token": "<s>",
"eos_token": "</s>",
"mask_token": {
"content": "<mask>",
"lstrip": true,
"normalized": false,
"rstrip": false,
"single_word": false
},
"pad_token": "<pad>",
"sep_token": "</s>",
"unk_token": "<unk>"
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{
"add_prefix_space": true,
"added_tokens_decoder": {
"0": {
"content": "<s>",
"lstrip": false,
"normalized": true,
"rstrip": false,
"single_word": false,
"special": true
},
"1": {
"content": "<pad>",
"lstrip": false,
"normalized": true,
"rstrip": false,
"single_word": false,
"special": true
},
"2": {
"content": "</s>",
"lstrip": false,
"normalized": true,
"rstrip": false,
"single_word": false,
"special": true
},
"3": {
"content": "<unk>",
"lstrip": false,
"normalized": true,
"rstrip": false,
"single_word": false,
"special": true
},
"50264": {
"content": "<mask>",
"lstrip": true,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
}
},
"bos_token": "<s>",
"clean_up_tokenization_spaces": false,
"cls_token": "<s>",
"eos_token": "</s>",
"errors": "replace",
"mask_token": "<mask>",
"model_max_length": 512,
"pad_token": "<pad>",
"sep_token": "</s>",
"tokenizer_class": "RobertaTokenizer",
"trim_offsets": true,
"unk_token": "<unk>"
}config.jsonAdded+97
merges.txtAdded
model.safetensorsAdded+3
special_tokens_map.jsonAdded+15
tokenizer.jsonAdded
tokenizer_config.jsonAdded+57
vocab.jsonAdded