ab-ai / PII-Model-Phi3-Mini

huggingface.co
Total runs: 182
24-hour runs: -3
7-day runs: -22
30-day runs: 17
Model's Last Updated: August 13 2024
text-generation

Introduction of PII-Model-Phi3-Mini

Model Details of PII-Model-Phi3-Mini

PII Detection Model - Phi3 Mini Fine-Tuned

This repository contains a fine-tuned version of the Phi3 Mini model for detecting personally identifiable information (PII). The model has been specifically trained to recognize various PII entities in text, making it a powerful tool for tasks such as data redaction, privacy protection, and compliance with data protection regulations.

Model Overview
Model Architecture
Detected PII Entities

The model is capable of detecting the following PII entities:

  • Personal Information :

    • firstname
    • middlename
    • lastname
    • sex
    • dob (Date of Birth)
    • age
    • gender
    • height
    • eyecolor
  • Contact Information :

    • email
    • phonenumber
    • url
    • username
    • useragent
  • Address Information :

    • street
    • city
    • state
    • county
    • zipcode
    • country
    • secondaryaddress
    • buildingnumber
    • ordinaldirection
  • Geographical Information :

    • nearbygpscoordinate
  • Organizational Information :

    • companyname
    • jobtitle
    • jobarea
    • jobtype
  • Financial Information :

    • accountname
    • accountnumber
    • creditcardnumber
    • creditcardcvv
    • creditcardissuer
    • iban
    • bic
    • currency
    • currencyname
    • currencysymbol
    • currencycode
    • amount
  • Unique Identifiers :

    • pin
    • ssn
    • imei (Phone IMEI)
    • mac (MAC Address)
    • vehiclevin (Vehicle VIN)
    • vehiclevrm (Vehicle VRM)
  • Cryptocurrency Information :

    • bitcoinaddress
    • litecoinaddress
    • ethereumaddress
  • Other Information :

    • ip (IP Address)
    • ipv4
    • ipv6
    • maskednumber
    • password
    • time
    • ordinaldirection
    • prefix
Prompt Format
### Instruction:
  Identify and extract the following PII entities from the text, if present: companyname, pin, currencyname, email, phoneimei, litecoinaddress, currency, eyecolor, street, mac, state, time, vehiclevin, jobarea, date, bic, currencysymbol, currencycode, age, nearbygpscoordinate, amount, ssn, ethereumaddress, zipcode, buildingnumber, dob, firstname, middlename, ordinaldirection, jobtitle, bitcoinaddress, jobtype, phonenumber, height, password, ip, useragent, accountname, city, gender, secondaryaddress, iban, sex, prefix, ipv4, maskednumber, url, username, lastname, creditcardcvv, county, vehiclevrm, ipv6, creditcardissuer, accountnumber, creditcardnumber. Return the output in JSON format.

### Input:
  Greetings, Mason! Let's celebrate another year of wellness on 14/01/1977. Don't miss the event at 176,Apt. 388.

### Output:
Usage
Installation

To use this model, you'll need to have the transformers library installed:

pip install transformers
Run Inference
from transformers import AutoTokenizer, AutoModelForTokenClassification

# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("ab-ai/PII-Model-Phi3-Mini")
model = AutoModelForTokenClassification.from_pretrained("ab-ai/PII-Model-Phi3-Mini")


input_text = "Hi Abner, just a reminder that your next primary care appointment is on 23/03/1926. Please confirm by replying to this email [email protected]."

model_prompt = f"""### Instruction:
    Identify and extract the following PII entities from the text, if present: companyname, pin, currencyname, email, phoneimei, litecoinaddress, currency, eyecolor, street, mac, state, time, vehiclevin, jobarea, date, bic, currencysymbol, currencycode, age, nearbygpscoordinate, amount, ssn, ethereumaddress, zipcode, buildingnumber, dob, firstname, middlename, ordinaldirection, jobtitle, bitcoinaddress, jobtype, phonenumber, height, password, ip, useragent, accountname, city, gender, secondaryaddress, iban, sex, prefix, ipv4, maskednumber, url, username, lastname, creditcardcvv, county, vehiclevrm, ipv6, creditcardissuer, accountnumber, creditcardnumber. Return the output in JSON format.

    ### Input:
    {input_text}

    ### Output: """


inputs = tokenizer(model_prompt, return_tensors="pt").to(device)
# adjust max_new_tokens according to your need
outputs = model.generate(**inputs, do_sample=True, max_new_tokens=120)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response) #{'middlename': ['Abner'], 'dob': ['23/03/1926'], 'email': ['[email protected]']}

Runs of ab-ai PII-Model-Phi3-Mini on huggingface.co

182
Total runs
-3
24-hour runs
-9
3-day runs
-22
7-day runs
17
30-day runs

More Information About PII-Model-Phi3-Mini huggingface.co Model

More PII-Model-Phi3-Mini license Visit here:

https://choosealicense.com/licenses/mit

PII-Model-Phi3-Mini huggingface.co

PII-Model-Phi3-Mini huggingface.co is an AI model on huggingface.co that provides PII-Model-Phi3-Mini's model effect (), which can be used instantly with this ab-ai PII-Model-Phi3-Mini model. huggingface.co supports a free trial of the PII-Model-Phi3-Mini model, and also provides paid use of the PII-Model-Phi3-Mini. Support call PII-Model-Phi3-Mini model through api, including Node.js, Python, http.

PII-Model-Phi3-Mini huggingface.co Url

https://huggingface.co/ab-ai/PII-Model-Phi3-Mini

ab-ai PII-Model-Phi3-Mini online free

PII-Model-Phi3-Mini huggingface.co is an online trial and call api platform, which integrates PII-Model-Phi3-Mini's modeling effects, including api services, and provides a free online trial of PII-Model-Phi3-Mini, you can try PII-Model-Phi3-Mini online for free by clicking the link below.

ab-ai PII-Model-Phi3-Mini online free url in huggingface.co:

https://huggingface.co/ab-ai/PII-Model-Phi3-Mini

PII-Model-Phi3-Mini install

PII-Model-Phi3-Mini is an open source model from GitHub that offers a free installation service, and any user can find PII-Model-Phi3-Mini on GitHub to install. At the same time, huggingface.co provides the effect of PII-Model-Phi3-Mini install, users can directly use PII-Model-Phi3-Mini installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

PII-Model-Phi3-Mini install url in huggingface.co:

https://huggingface.co/ab-ai/PII-Model-Phi3-Mini

Url of PII-Model-Phi3-Mini

PII-Model-Phi3-Mini huggingface.co Url

Provider of PII-Model-Phi3-Mini huggingface.co

ab-ai
ORGANIZATIONS

Other API from ab-ai

huggingface.co

Total runs: 158
Run Growth: 75
Growth Rate: 47.47%
Updated:May 04 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 09 2024