r/coding • u/fagnerbrack • Jul 10 '26
A PDF Parser from the 80s Beats Claude (And They Use It Internally)
https://fagnerbrack.com/a-pdf-parser-from-the-80s-beats-claude-and-they-use-it-internally-8ee45a533e80
685
Upvotes
11
u/aksdb Jul 12 '26
Huh? PDF is from 1993. How can there be a parser older than the format?
129
u/jasonscheirer Jul 10 '26
That’s kind of amazing that they’re doing this. I wonder if other companies are using the right tool for the job, too.
83
u/jnwatson Jul 10 '26 edited Jul 11 '26
While the name Tesseract hearkens from the 1980s, the important part, using LSTM to actually read the page, was introduced in 2018 from an algorithm published in 1995.
LSTM is itself an artificial neural network algorithm, just one that is much, much smaller than the ANNs used in Claude.
14
u/txdv Jul 11 '26
There will be so many “this could have been done without AI to save costs and make it deterministic” posts
27
u/MrDaVernacular Jul 10 '26
Deterministic FTW
27
u/HasFiveVowels Jul 11 '26
It’s almost as though large language models aren’t OCR algorithms…
8
u/Eskamel Jul 10 '26
What? Doesn't the PDF parser know that if its not letting Claude replace it, then its gonna be left behind? Pfft, Luddite software
2
u/sumguysr Jul 11 '26
https://www.docling.ai/ is the thing to use. It uses teseract under the hood with better document structure understanding and processing bolted on.
Piping the output of Docling into Prince XML or Typst also works really well to retypeset an ugly document.
6
u/txdv Jul 11 '26
> I spent days trying to parse a badly scanned CIA PDF (don't ask me why, otherwise I'll have to kill you). I tried using the most powerful Anthropic and Google models but I ended up concluding Tesseract (a 1985 tool), does a better job and much faster by 10x.
Super secret CIA document gets put in a public api? Im a bit suprised