INPUT — what we fed the pipeline
- Document
- cv_classic.pdf
- Ground truth
- sarah.mitchell@example.com, +44 7700 900123 (from cv_clean.gt.md)
- Line count
- 26 lines
PROCESSING — what the pipeline does
parse_pdf(cv_pdf) → line_dfdetect_regex(line_df) → list[RedactionMark] via 5 patterns (IBAN, SSN, CC, email, phone)merge_marks(marks) → dedupe overlapping matches by category priority
OUTPUT — what came back
- Marks detected
- 2
- Categories
- pii_email, pii_phone
pii_email L3: 'sarah.mitchell@example.com' pii_phone L3: '+44 7700 900123'
VERDICT — assertions
6 PASS out of 6
| PASS | At least 2 PII marks detected |
| PASS | Email category detected |
| PASS | Phone category detected |
| PASS | Exact email caught |
| PASS | Exact phone caught |
| PASS | No false positives (marks <= 6) |
Angela Shi · medium.com/@angela.shi