Re:Extracting campaign finance data from gnarly PDFs using d...
by coffeecat on Saturday June 22, 2019 @01:18PM
(#20250645)
I'm curious if you considered or attempted to use pdfplumber's table extraction methods to separate tabular from non-tabular text. That would be my starting point on a problem like this, as picking the relevant rows of a table is far easier than picking from the set of all tokens. By the way, when you say tokens, you're referring to non-whitespace characters separated by whitespace? How reliable have you found pdfplumber to be in picking out words/tokens?
Re:Extracting campaign finance data from gnarly PDFs using d...
by jonathanstray on Saturday June 22, 2019 @01:33PM
(#20250720)
I didn’t try separating out tables because the total field isn’t actually “inside” the table in many cases. Certainly the other fields I want are not.
pdfplumber seems mostly ok at extracting tokens. Sometimes it seems to combine tokens that should be separate. I suspect a few percent of the error is actually problems earlier in the data pipeline, as opposed to the model proper.
Re:Extracting campaign finance data from gnarly PDFs using d...
by steve19 on Saturday June 22, 2019 @05:16PM
(#20251764)
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.
I also believe that preparing and cleaning this data set, and bringing a challenging investigative journalism problem to the attention of other researchers, would be valuable even if I hadn’t done any work on this baseline solution. This is a problem that journalists currently expend a huge amount of time and money on, which reduces the effectiveness of transparency around political ad spending information.