News for hackers. Stuff that matters.
Re:Search PDFs with Transformers and Python Notebook by spaetzleesser on Monday July 25, 2022 @04:55PM (#32230798)
"PDF as a data structure"

Don't. PDF is a terrible format for storing machine readable data. You lose a ton of Information while you create the PDF which you then painstakingly have to get back later (if that's even possible)

Re:Search PDFs with Transformers and Python Notebook by alexcg1 on Monday July 25, 2022 @05:57PM (#32231473)
I may have misworded it (if I wrote those words - PDF rots the brain and my memory likewise).

Agreed on the rest. PDFs don't store machine-readable data. Often just pixelated scanned hot garbage dumpster fire text.

I hate PDFs but have to work with the satanforesaken things. Hence the notebook. It's my little way of trying to give my little PDF-bespoked-hellscape a tiny little glow-up.

Re:Search PDFs with Transformers and Python Notebook by spaetzleesser on Monday July 25, 2022 @10:40PM (#32233639)
I probably didn’t read your comment closely enough. When I hear about PDF parsing or PDF as data I immediately get flashbacks from a project years ago where I had to parse PDF files. I think I am still traumatized by this experience so whenever I hear somebody wants to do this I just want to scream “Nooo. Don’t do this”
Re:Search PDFs with Transformers and Python Notebook by alexcg1 on Tuesday July 26, 2022 @04:14AM (#32235656)
I think you and I should start a support group!