github datalab-to/marker v1.2.0
LLM mode, better OCR heuristics, faster

latest releases: v1.10.2, v1.10.1, v1.10.0...
17 months ago

Overview

Significant improvements to quality and speed. There is now LLM mode, which will optionally leverage LLMs to boost output quality. OCR heuristics are significantly improved, and marker will now make good decisions about when to re-OCR the document. Layout model is faster and more accurate.

Quality

  • Optionally pass the --use_llm flag to improve tables, inline math, forms, complex pages, and general quality.
  • Automatically detect bad OCR text and re-OCR the document. This consists of some PDF-level heuristics and a new OCR quality model.
  • Pass the --strip_existing_ocr flag to always ignore existing OCR and redo it instead.
  • Layout blocks are now detected more accurately when passing --use_llm.

Speed

  • Layout model is now half the size and ~2x faster (most of the runtime in the general case is layout, so this should result in a big overall speedup). It's also more accurate.

Misc

  • Pass the --disable_image_extraction flag to avoid extracting images.
  • Pass --use_llm and --disable_image_extraction to automatically convert images to descriptions.
  • Made it easy to extract individual block types from the document (for example, getting all tables out)

Partial Changelog

New Contributors

Full Changelog: v1.1.0...v1.2.0

Don't miss a new marker release

NewReleases is sending notifications on new releases.