Live data from Hacker News

Extracting campaign finance data from gnarly PDFs using deep learning

jonathanstray.com

11–17 of 17 posts

Re: Extracting campaign finance data from gnarly PDFs using deep learning

#12
This is a problem that fascinates me as well. How humans effortlessly look at a document with tables and columns Etc. and effortlessly extract all of the 'factoid' bits from the document and often their relationships. Back at IBM there had been some work on extracting tables from PDFs but it turns out to be a pretty challenging problem to generalize.

Re: Extracting campaign finance data from gnarly PDFs using deep learning

#14
post #2

Looks like a very shallow article that hasn't actually solved the meat of the problems. Am I reading it wrong?

Heh. It’s my work, so maybe I can clarify the goals. This is meant to be a proof of concept. I took a week and was able to show that relatively simple deep learning techniques are capable of generalizing over unseen form types with high accuracy. I also showed that tokens-plus-geometry is a viable format, and that hand-crafted feature engineering is still necessary (and still used in SOTA approaches). I also believe…

Really enjoyed the video, thank you for sharing.

I think the parents critism was more that the article was a little light compared to thr video. For example, you didn't have screenshots of the scanned pdfs in the article.

Re: Extracting campaign finance data from gnarly PDFs using deep learning

#15

My personal bet is that you would have probably gotten better results by simply feeding your data into xgboost or lightgbm. This current fad of focusing on neural networks just seems sorta silly when we have simpler and (often) better performing models. Just look at what sorts of models win kaggle competitions.

Maybe but I think 90% of the work is wrangling the data and understanding the problem, it wouldn't be that hard to substitute gradient boosting for the NN

Re: Extracting campaign finance data from gnarly PDFs using deep learning

#16
Deep learning (and indeed any kind of machine learning) is really not necessary here. I wrote a very simple baseline that estimates the total gross amount as the biggest numerical value present (favouring ones that begin with a dollar sign and/or occur more than once). This achieves 93% accuracy (code is here https://gist.github.com/rlmacsween/166b7c1c1b0c5f466a0fe9b46...) in comparison to the 90% for the deep learning model.

Re: Extracting campaign finance data from gnarly PDFs using deep learning

#17

Deep learning (and indeed any kind of machine learning) is really not necessary here. I wrote a very simple baseline that estimates the total gross amount as the biggest numerical value present (favouring ones that begin with a dollar sign and/or occur more than once). This achieves 93% accuracy (code is here https://gist.github.com/rlmacsween/166b7c1c1b0c5f466a0fe9b46... ) in comparison to the 90% for the deep learn…

Nice! An excellent baseline, something to beat.
Post reply on HN