News for hackers. Stuff that matters.
Re:Nanonets-OCR-s – OCR model transforms documents into stru... by PixelPanda on Monday June 16, 2025 @02:14AM (#44287044)
Full disclaimer: I work at Nanonets

Excited to share Nanonets-OCR-s, a powerful and lightweight (3B) VLM model that converts documents into clean, structured Markdown. This model is trained to understand document structure and content context (like tables, equations, images, plots, watermarks, checkboxes, etc.). Key Features:

LaTeX Equation Recognition Converts inline and block-level math into properly formatted LaTeX, distinguishing between $...$ and $$...$$.

Image Descriptions for LLMs Describes embedded images using structured <img> tags. Handles logos, charts, plots, and so on.

Signature Detection & Isolation Finds and tags signatures in scanned documents, outputting them in <signature> blocks.

Watermark Extraction Extracts watermark text and stores it within <watermark> tag for traceability.

Smart Checkbox & Radio Button Handling Converts checkboxes to Unicode symbols like , , and for reliable parsing in downstream apps.

Complex Table Extraction Handles multi-row/column tables, preserving structure and outputting both Markdown and HTML formats.

Huggingface / GitHub / Try it out: https://huggingface.co/nanonets/Nanonets-OCR-s

Try it with Docext in Colab: https://github.com/NanoNets/docext/blob/main/PDF2MD_README.m...

Re:Nanonets-OCR-s – OCR model transforms documents into stru... by mvac on Monday June 16, 2025 @06:44AM (#44288267)
Re:Nanonets-OCR-s – OCR model transforms documents into stru... by generalizations on Monday June 16, 2025 @12:25PM (#44291033)
Does it have a way to extract the images themselves, or is that still a separate process later?
Re:Nanonets-OCR-s – OCR model transforms documents into stru... by j45 on Monday June 16, 2025 @04:09PM (#44292964)
If you are after extracting images from pdfs there’s plenty of tools that do that just fine without LLMs.
Re:Nanonets-OCR-s – OCR model transforms documents into stru... by generalizations on Monday June 16, 2025 @04:15PM (#44293010)
I mean, ideally it would be in context, so the generated markdown references the correct image at the correct location in the doc. Unless that's what you're talking about? In which case I don't know about those tools.
Re:Nanonets-OCR-s – OCR model transforms documents into stru... by RicoElectrico on Monday June 16, 2025 @03:11PM (#44292511)
Could be it used to (maybe with help of a downstream LLM) parse a photo/PDF of a restaurant menu into a JSON file conforming to a schema? Or would bigger, hosted multimodal LLMs work better in such case?
Re:Nanonets-OCR-s – OCR model transforms documents into stru... by gibsonf1 on Monday June 16, 2025 @03:58PM (#44292895)
Does it hallucinate with the LLM being used?
Re:Nanonets-OCR-s – OCR model transforms documents into stru... by nattaylor on Monday June 16, 2025 @04:34PM (#44293150)
The base model is Qwen2.5-VL-3B and the announcement says a limitation is "Model can suffer from hallucination"
Re:Nanonets-OCR-s – OCR model transforms documents into stru... by gibsonf1 on Monday June 16, 2025 @06:44PM (#44294076)
Seems a bit scary that the "source" text from the pdfs could actually be hallucinated.
Re:Nanonets-OCR-s – OCR model transforms documents into stru... by prats226 on Monday June 16, 2025 @07:55PM (#44294429)
Given that input is image and not raw pdf, its not completely unexpected
Re:Nanonets-OCR-s – OCR model transforms documents into stru... by michaelt on Monday June 16, 2025 @06:47PM (#44294093)
Sometimes. I just fed the huggingface demo an image containing some rather improbable details [1] and it OCRed "Page 1000000000000" with one extra trailing zero.

Honestly I was expecting the opposite - a repetition penalty to kick in having repeated zero too many times, resulting in too few zeros - but apparently not. So you might want to steer clear of this model if your document has a trillion pages.

Other than that, it did a solid job - I've certainly seen worse attempts to OCR a table.

[1] https://imgur.com/a/8rJeHf8

Re:Nanonets-OCR-s – OCR model transforms documents into stru... by wisdomseaker on Tuesday June 17, 2025 @03:14AM (#44296462)
Would any of this be able to handle magazine layouts? I've yet to find anything that can follow their fairly random layouts with text at varying angles etc
Re:Nanonets-OCR-s – OCR model transforms documents into stru... by arkh on Tuesday June 17, 2025 @05:17AM (#44297168)
So it feels like it finally let me do one thing I'd wanted for some time: scan printed documents and generate structured pdfs (and not pdf as a picture container).
Re:Nanonets-OCR-s – OCR model transforms documents into stru... by uselesswords on Tuesday June 17, 2025 @10:15AM (#44299527)
Have you found it has better accuracy or scales with larger models? Or are the improvements, if any, marginal compared to the 3B VLM model?