Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test candidate regex on actual PDFs #11

Closed
waldoj opened this issue Jun 22, 2014 · 2 comments
Closed

Test candidate regex on actual PDFs #11

waldoj opened this issue Jun 22, 2014 · 2 comments
Assignees

Comments

@waldoj
Copy link
Member

waldoj commented Jun 22, 2014

Review at least a few dozen SSN-bearing PDFs, testing the candidate regular expression against real data, to fine-tune it.

@waldoj waldoj self-assigned this Jun 22, 2014
@waldoj
Copy link
Member Author

waldoj commented Jun 22, 2014

The test cases aren't great. I OCRed these files fairly naively, using PyPDFOCR (which, in turn, relies on Poppler and Tesseract), and the quality of the OCR is low, in my experience. The biggest problem is that it just randomly fails to OCR digits, digits that are perfectly obvious. So 123-45-6789 might be OCRed as 123-4-6789 and that, of course, is not identified as an SSN.

@waldoj
Copy link
Member Author

waldoj commented Jun 22, 2014

The good news is that I was able to identify some common real-world problems in identifying SSNs (#1, #3, #4, #5), each of which is very solvable.

@waldoj waldoj closed this as completed Jun 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant