README 未给出完整安装与运行步骤,需另看 PDF2MD_README.md、EXT_README.md 等子文档;Markdown 转换依赖另行发布的 Nanonets-OCR-s 模型,需从 Hugging Face 下载;README 未说明默认端口等运行细节。
docext
NanoNetsApache-2.0更新放缓无需 OCR 的本地化文档解析工具,能把扫描件、表格等非结构化文档直接抽取成结构化数据和 Markdown,还附带 OCR 基准测试。
An on-premises, OCR-free unstructured data extraction, markdown conversion and benchmarking toolkit. (https://idp-leaderboard.org/)
pip install docextREADME 未说明具体显存要求;仅说明可本地部署在 Linux 和 MacOS 上,并提到配套的 3B 参数 Nanonets-OCR-s 模型。
本地部署的文档信息提取与基准测试工具包,无需 OCR 即可把 PDF 和图片转成 Markdown
无需 OCR 的本地化文档解析工具,能把扫描件、表格等非结构化文档直接抽取成结构化数据和 Markdown,还附带 OCR 基准测试。
核心能力
- 用视觉语言模型把 PDF 和图片转成结构化 Markdown
- 识别 LaTeX 公式、签名、水印、页码并加语义标签
- 把复杂表格转成 HTML 表格,复选框转成 Unicode 符号
- 支持自定义字段或预置模板提取结构化信息并给出置信度
- 提供 REST API 和多页文档处理,可完全本地部署
容易踩的坑
- v0.1.14最新正式版2025-06-30 · 2025-06-30 06:28 UTC
What's Changed
- Integrate ollama by @mandalsouvik3333 in https://github.com/NanoNets/docext/pull/7
- Dev/benchmark by @mandalsouvik3333 in https://github.com/NanoNets/docext/pull/8
- Dev/benchmark by @mandalsouvik3333 in https://github.com/NanoNets/docext/pull/11
- add grits for table eval, fix #14 by @mandalsouvik3333 in https://github.com/NanoNets/docext/pull/15
- Add local hosted models eval support by @mandalsouvik3333 in https://github.com/NanoNets/docext/pull/20
- PDF Support, Multi File Support and Some Fixes by @sirius116 in https://github.com/NanoNets/docext/pull/23
- Add image & pdf 2 markdown support by @mandalsouvik3333 in https://github.com/NanoNets/docext/pull/24
- Fix UTF-8 decoding error on Windows by @mrexodia in https://github.com/NanoNets/docext/pull/34
- fix: update healthcheck endpoint in check_vllm_healthcheck function by @Bae-ChangHyun in https://github.com/NanoNets/docext/pull/32
- Fix: Add transformers version constraints to resolve TypeError by @28ananthaprakash in https://github.com/NanoNets/docext/pull/47
- Fix: Container Running with Dangerous Root User Privileges in Dockerfile by @kira-offgrid in https://github.com/NanoNets/docext/pull/45
New Contributors
- @sirius116 made their first contribution in https://github.com/NanoNets/docext/pull/23
- @mrexodia made their first contribution in https://github.com/NanoNets/docext/pull/34
- @Bae-ChangHyun made their first contribution in https://github.com/NanoNets/docext/pull/32
- @28ananthaprakash made their first contribution in https://github.com/NanoNets/docext/pull/47
- @kira-offgrid made their first contribution in https://github.com/NanoNets/docext/pull/45
Full Changelog: https://github.com/NanoNets/docext/compare/v0.1.7...v0.1.14
- v0.1.72025-04-08 · 2025-04-08 10:56 UTC
查看更新说明
What's Changed
- Add vendor-hosted models (openai, anthropic, openrouter)
- Fix for webp image files
New Contributors
- @mandalsouvik3333 made their first contribution in https://github.com/NanoNets/docext/pull/4
- @eltociear made their first contribution in https://github.com/NanoNets/docext/pull/3
Full Changelog: https://github.com/NanoNets/docext/compare/v0.1.2...v0.1.7
- v0.1.22025-04-05 · 2025-04-05 03:26 UTC
查看更新说明
Base release with following features :wrench: Custom & pre-built extraction templates :bar_chart: Table + field data extraction :computer: Gradio-powered web interface :closed_lock_with_key: On-prem deployment with REST API :page_facing_up: Multi-page document support :chart_with_upwards_trend: Confidence scores for extracted fields
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。

New Model Release: Nanonets-OCR-s
We're excited to announce the release of Nanonets-OCR-s, a compact 3B parameter model specifically trained for efficient image to markdown conversion with semantic understanding for images, signatures, watermarks, etc.!
📢 Read the full announcement | 🤗 Hugging Face model
Overview
docext is a comprehensive on-premises document intelligence toolkit powered by vision-language models (VLMs). It provides three core capabilities:
📄 PDF & Image to Markdown Conversion: Transform documents into structured markdown with intelligent content recognition, including LaTeX equations, signatures, watermarks, tables, and semantic tagging.
🔍 Document Information Extraction: OCR-free extraction of structured information (fields, tables, etc.) from documents such as invoices, passports, and other document types, with confidence scoring.
📊 Intelligent Document Processing Leaderboard: A comprehensive benchmarking platform that tracks and evaluates vision-language model performance across OCR, Key Information Extraction (KIE), document classification, table extraction, and other intelligent document processing tasks.
Features
PDF and Image to Markdown
Convert both PDF and images to markdown with content recognition and semantic tagging.
- LaTeX Equation Recognition: Convert both inline and block LaTeX equations in images to markdown.
- Intelligent Image Description: Generate a detailed description for all images in the document within
<img></img>tags. - Signature Detection: Detect and mark signatures and watermarks in the document. Signatures text are extracted within
<signature></signature>tags. - Watermark Detection: Detect and mark watermarks in the document. Watermarks text are extracted within
<watermark></watermark>tags. - Page Number Detection: Detect and mark page numbers in the document. Page numbers are extracted within
<page_number></page_number>tags. - Checkboxes and Radio Buttons: Converts form checkboxes and radio buttons into standardized Unicode symbols (☐, ☑, ☒).
- Table Detection: Convert complex tables into html tables.
🔍 For in-depth information, see the release blog.
For setup instructions and additional details, check out the full feature guide for the pdf to markdown.
Intelligent Document Processing Leaderboard
This benchmark evaluates performance across seven key document intelligence challenges:
- Key Information Extraction (KIE): Extract structured fields from unstructured document text.
- Visual Question Answering (VQA): Assess understanding of document content via question-answering.
- Optical Character Recognition (OCR): Measure accuracy in recognizing printed and handwritten text.
- Document Classification: Evaluate how accurately models categorize various document types.
- Long Document Processing: Test models' reasoning over lengthy, context-rich documents.
- Table Extraction: Benchmark structured data extraction from complex tabular formats.
- Confidence Score Calibration: Evaluate the reliability and confidence of model predictions.
🔍 For in-depth information, see the release blog.
📊 Live leaderboard: https://idp-leaderboard.org
For setup instructions and additional details, check out the full feature guide for the Intelligent Document Processing Leaderboard.
Docext
- Flexible extraction: Define custom fields or use pre-built templates
- Table extraction: Extract structured tabular data from documents
- Confidence scoring: Get confidence levels for extracted information
- On-premises deployment: Run entirely on your own infrastructure (Linux, MacOS)
- Multi-page support: Process documents with multiple pages
- REST API: Programmatic access for integration with your applications
- Pre-built templates: Ready-to-use templates for common document types:
- Invoices
- Passports
- Add/delete new fields/columns for other templates.
For more details (Installation, Usage, and so on), please check out the feature guide.
Change Log
Latest Updates
- 12-06-2025 - Added pdf and image to markdown support.
- 06-06-2025 - Added
gemini-2.5-pro-preview-06-05evaluation metrics to the leaderboard. - 04-06-2025 - Added support for PDF and multiple documents in
docextextraction.
- 23-05-2025 – Added
gemini-2.5-pro-preview-03-25,claude-sonnet-4evaluation metrics to the leaderboard. - 17-05-2025 – Added
InternVL3-38B-Instruct,qwen2.5-vl-32b-instructevaluation metrics to the leaderboard. - 16-05-2025 – Added
gemma-3-27b-itevaluation metrics to the leaderboard. - 12-05-2025 – Added
Claude 3.7 sonnet,mistral-medium-3evaluation metrics to the leaderboard.
About
docext is developed by Nanonets, a leader in document AI and intelligent document processing solutions. Nanonets is committed to advancing the field of document understanding through open-source contributions and innovative AI technologies. If you are looking for information extraction solutions for your business, please visit our website to learn more.
Contributing
We welcome contributions! Please see contribution.md for guidelines. If you have a feature request or need support for a new model, feel free to open an issue—we'd love to discuss it further!
Troubleshooting
If you encounter any issues while using docext, please refer to our Troubleshooting guide for common problems and solutions.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.