zach commited on
Commit
f022b78
·
1 Parent(s): 30fc998

Add dataset

Browse files
Files changed (2) hide show
  1. README.md +42 -0
  2. data.csv +56 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - token-classification
5
+ language:
6
+ - en
7
+ tags:
8
+ - pii
9
+ - privacy
10
+ - ner
11
+ - data-protection
12
+ - anonymization
13
+ pretty_name: PII Detection Corpus
14
+ size_categories:
15
+ - n<1K
16
+ ---
17
+
18
+ # PII Detection Corpus
19
+
20
+ Synthetic dataset of text samples containing labeled PII (Personally Identifiable Information) for testing and benchmarking PII detection/scrubbing tools.
21
+
22
+ ## Fields
23
+
24
+ - `text`: Text sample containing PII
25
+ - `pii_type`: Category of PII (email, phone, ssn, credit_card, ip, dob, address, passport, api_key, name, iban)
26
+ - `pii_value`: The exact PII string in the text
27
+ - `start`: Character offset start
28
+ - `end`: Character offset end
29
+ - `context`: Surrounding context category (medical, financial, support, legal, hr)
30
+
31
+ All data is **fully synthetic** — no real personal information.
32
+
33
+ ## Usage
34
+
35
+ ```python
36
+ from datasets import load_dataset
37
+ ds = load_dataset("zachz/pii-detection-corpus")
38
+ ```
39
+
40
+ ## License
41
+
42
+ MIT
data.csv ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ text,pii_type,pii_value,start,end,context
2
+ "Please contact [email protected] for more information about your account.",email,[email protected],15,35,support
3
+ "Send the invoice to [email protected] by end of week.",email,[email protected],24,45,financial
4
+ "You can reach our HR department at [email protected] anytime.",email,[email protected],39,66,hr
5
+ "My personal email is [email protected], please use it.",email,[email protected],21,52,support
6
+ "Forward the medical records to [email protected] immediately.",email,[email protected],35,64,medical
7
+ "Please call me at (555) 123-4567 to discuss the contract.",phone,(555) 123-4567,19,33,legal
8
+ "Emergency contact number: 555-987-6543. Available 24/7.",phone,555-987-6543,26,38,medical
9
+ "Reach our support line at +1-555-246-8135 during business hours.",phone,+1-555-246-8135,27,41,support
10
+ "The patient's phone number is 555.321.7654 on file.",phone,555.321.7654,29,41,medical
11
+ "Call 1-800-555-0199 for immediate assistance with your claim.",phone,1-800-555-0199,5,19,financial
12
+ "Social security number on file: 123-45-6789. Please verify.",ssn,123-45-6789,33,44,hr
13
+ "The applicant provided SSN 987-65-4321 on the form.",ssn,987-65-4321,28,39,hr
14
+ "Tax ID associated with the account: 456-78-9012.",ssn,456-78-9012,37,48,financial
15
+ "Records show SSN 111-22-3333 for the primary account holder.",ssn,111-22-3333,17,28,financial
16
+ "Employee SSN: 222-33-4444. Update HR records accordingly.",ssn,222-33-4444,14,25,hr
17
+ "Payment method on file: 4111-1111-1111-1111. Expires 12/28.",credit_card,4111-1111-1111-1111,26,45,financial
18
+ "Charge the amount to card number 5500 0000 0000 0004.",credit_card,5500 0000 0000 0004,33,52,financial
19
+ "Customer's card: 3782 822463 10005. Process refund.",credit_card,3782 822463 10005,17,34,financial
20
+ "Use card 6011-0009-9013-9424 for the subscription payment.",credit_card,6011-0009-9013-9424,9,28,financial
21
+ "Billing card ending in 4242: full number 4242424242424242.",credit_card,4242424242424242,40,56,financial
22
+ "Server accessed from IP 192.168.1.105 at 3:42 AM.",ip,192.168.1.105,24,37,support
23
+ "Suspicious login detected from 10.0.0.254 on the admin panel.",ip,10.0.0.254,31,41,support
24
+ "Firewall blocked connection from 203.0.113.42 repeatedly.",ip,203.0.113.42,33,46,support
25
+ "User's last known IP address: 172.16.254.1. Check access logs.",ip,172.16.254.1,29,41,support
26
+ "Connection originated from 2001:0db8:85a3:0000:0000:8a2e:0370:7334.",ip,2001:0db8:85a3:0000:0000:8a2e:0370:7334,27,66,support
27
+ "Patient date of birth: 03/15/1985. Verify with records.",dob,03/15/1985,23,33,medical
28
+ "DOB on application: 1990-07-22. Matches government ID.",dob,1990-07-22,22,32,hr
29
+ "The insured's birth date is 12/01/1978 as noted.",dob,12/01/1978,27,37,financial
30
+ "Employee born on 11-30-1995. Update benefits enrollment.",dob,11-30-1995,17,27,hr
31
+ "Records indicate DOB of 06/25/2001 for the minor.",dob,06/25/2001,27,37,legal
32
+ "Ship to: 742 Evergreen Terrace, Springfield, IL 62704.",address,"742 Evergreen Terrace, Springfield, IL 62704",10,52,support
33
+ "Home address listed: 221B Baker Street, London, NW1 6XE.",address,"221B Baker Street, London, NW1 6XE",22,53,hr
34
+ "Send documents to 1600 Pennsylvania Ave NW, Washington, DC 20500.",address,"1600 Pennsylvania Ave NW, Washington, DC 20500",22,62,legal
35
+ "Patient resides at 350 Fifth Avenue, New York, NY 10118.",address,"350 Fifth Avenue, New York, NY 10118",20,52,medical
36
+ "Office location: 1 Infinite Loop, Cupertino, CA 95014.",address,"1 Infinite Loop, Cupertino, CA 95014",18,50,hr
37
+ "Passport number: AB1234567. Valid until 2029.",passport,AB1234567,17,26,legal
38
+ "Travel document: C9876543. Issued by US State Department.",passport,C9876543,17,25,legal
39
+ "Passport on file: XY7654321. Needs renewal.",passport,XY7654321,17,26,hr
40
+ "International ID: P12345678. Used for KYC verification.",passport,P12345678,18,27,financial
41
+ "Document reference: N98765432. Verified in person.",passport,N98765432,21,30,legal
42
+ "API key in config: sk-proj-abc123def456ghi789jkl012mno345pqr678. Rotate immediately.",api_key,sk-proj-abc123def456ghi789jkl012mno345pqr678,20,58,support
43
+ "Found hardcoded key: AKIA1234567890ABCDEF in the source code.",api_key,AKIA1234567890ABCDEF,21,41,support
44
+ "The token ghp_1234567890abcdefABCDEF1234567890abcd was exposed in logs.",api_key,ghp_1234567890abcdefABCDEF1234567890abcd,10,50,support
45
+ "Stripe key found: sk_test_4eC39HqLyjWDarjtT1zdp7dc in production.",api_key,sk_test_4eC39HqLyjWDarjtT1zdp7dc,19,48,support
46
+ "Database password: xK9#mP2$vL5nQ8wR was committed to the repo.",api_key,xK9#mP2$vL5nQ8wR,20,37,support
47
+ "The claim was filed by James Robert Wilson on March 3rd.",name,James Robert Wilson,27,46,legal
48
+ "Patient: Dr. Sarah Elizabeth Chen. Room 204B.",name,Dr. Sarah Elizabeth Chen,9,33,medical
49
+ "Beneficiary listed as Mohammed Ali Al-Rashid on the policy.",name,Mohammed Ali Al-Rashid,23,44,financial
50
+ "Interview scheduled with candidate Maria Guadalupe Torres-Vega.",name,Maria Guadalupe Torres-Vega,34,61,hr
51
+ "Power of attorney granted to Alexander Dmitrievich Petrov.",name,Alexander Dmitrievich Petrov,30,58,legal
52
+ "Wire transfer to IBAN: DE89 3704 0044 0532 0130 00. Process today.",iban,DE89 3704 0044 0532 0130 00,22,49,financial
53
+ "Beneficiary account: GB29 NWBK 6016 1331 9268 19.",iban,GB29 NWBK 6016 1331 9268 19,22,49,financial
54
+ "Payment IBAN: FR76 3000 6000 0112 3456 7890 189.",iban,FR76 3000 6000 0112 3456 7890 189,14,47,financial
55
+ "Send funds to IT60 X054 2811 1010 0000 0123 456.",iban,IT60 X054 2811 1010 0000 0123 456,14,46,financial
56
+ "Account holder IBAN: ES91 2100 0418 4502 0005 1332.",iban,ES91 2100 0418 4502 0005 1332,21,51,financial