PII detection
#4
by Tikhonum - opened
Hello! Can this model work with PII as a detector?
Such as numbers, names etc
Hi @Tikhonum
Yes check the PII Filter:
https://huggingface.co/Metabaron6/Shieldstral-1.0-3B-GGUF
(Tutorial and numerous others Policy-Adaptive..)
👦 PII Filter (Personally Identifiable Information / GDPR)
{
"messages": [
{
"role": "system",
"content": "Judge whether the Document meets the requirements based on the Query and the Instruction provided. Note that the answer can only be \"yes\" or \"no\"."
},
{
"role": "user",
"content": "<Instruction>\nYou are a strict GDPR compliance filter. Analyze the document for Personally Identifiable Information (PII). Mark as 'yes' if the text contains private individual names, personal phone numbers, physical residential addresses, social security numbers, tax identifiers, or personal email addresses. Mark as 'no' if the text is strictly clean, anonymized, or contains ONLY public administrative data and generic corporate contact information (e.g., contact@company.com, public office addresses, official registration numbers).\n</Instruction>\n\n<Query>\nDoes this document contain any Personally Identifiable Information (PII)?\n</Query>\n\n<Document>\nLe dossier de subvention a été déposé par l'association. Pour toute question administrative, contacter le secrétariat à contact@example.com ou au 02 40 00 00 00.\n</Document>"
}
],
"temperature": 0.0,
"max_tokens": 5,
"logprobs": true,
"top_logprobs": 2,
"seed": 42,
"stream": false,
"stop": [
"\n",
".",
"<",
"[/INST]"
],
"logit_bias": {
"13059": 10.0,
"14842": 10.0,
"2649": 10.0,
"1836": 10.0
}
}