-
Notifications
You must be signed in to change notification settings - Fork 10
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
Compare Python PDF extraction libraries with sample files #30
Comments
Hi Mark -- I experimented a bit with PyPDF and PDFMiner for syllabus Best, Graham On Thu, May 22, 2014 at 12:41 PM, Mark Gorenstein
|
We are planning to do a more formal comparison. Stay tuned. |
If you want to leverage it, I put my code for the extractor in the opensyllabus/Classifiers folder. |
Thanks, Graham. |
Libraries
Source Texts |
I'm going to move ahead with V1 given these resources. I'll make the platform flexible enough to support the addition of other PDF extractors in case we come across any serious contenders that I've missed. Graham and Dennis: let me know if you have any suggestions, especially with the selection of source texts. I went with P&P because it's in the public domain, was written in English, and has a range of released PDFs. |
I reverse-engineered the latest version of pdfminer so that we can work with PDFs programatically.
I had read about slate while looking into PDFMiner and I thought it sounded On Sun, May 25, 2014 at 1:29 PM, Mark Gorenstein
|
This could be worth checking out, to unify and maybe simplify text extraction: |
Jumping in after not contributing very much... I'm familiar with some of the people who are maintaining Apache Tika out at NASA JPL. It is a project that has a strong core team of developers, and has overlapping goals with textract. The advantage to Tika (and textract) is that you don't need separate logic for each document format, and you also get standard metadata for each document. Tika wraps around pdfbox for pdf documents, which performed a 6 second extraction in the benchmarking stats file. I bet the slowness was caused by the bootup time of the JVM, though. If you separate the JVM initialization code with the conversion, I imagine it's more in the range of the pure-python extractors. This is how I've used Tika in python in the past: www.hackzine.org/using-apache-tika-from-python-with-jnius.html Cheers, |
Thanks @samzhang111 yep, happy to provide any info here on Tika if it helps |
Coming back here, just FYI we have a fully supported Tika port to Python using the JAX-RS REST server. FYI: https://github.com/chrismattmann/tika-python |
Write up mini-paper comparing performance of various text-extractors on a document with available plaintext (possibly a particular edition of the bible).
The text was updated successfully, but these errors were encountered: