项目已停止维护,不再打安全补丁,README 建议改用 LiteParse;GUI 需先启动 API,再单独拉取 axarev/parsr-ui-localhost 镜像;MuPDF 与 Pandoc 为可选依赖且许可证分别为 AGPL 和 GPL。

docker pull axarev/parsr
docker run -p 3001:3001 axarev/parsrREADME 未说明显存或 GPU 要求;通过 Docker 镜像运行,OCR 依赖 Tesseract,未提及 CPU/GPU 厂商型号。
把 PDF、图片、docx、eml 清洗解析成结构化 JSON、Markdown、CSV 或 TXT 的工具链
把 PDF、扫描件和图片解析成带版面结构、表格和文本的富结构化数据,适合做文档入库和 RAG 前的预处理。
核心能力
- 重建词、行、段落的文档层级结构
- 检测标题、表格、列表、目录、页眉页脚和链接
- 输出 JSON、Markdown、CSV/Pandas DF 或 TXT
- 提供 REST API 与本地 GUI 可视化结果
- 附带 Python 客户端 parsr-client 调用 API
容易踩的坑
- v1.2.2最新正式版2020-11-20 · 2020-11-20 15:45 UTC
- Security Fixes
- v1.2.12020-11-04 · 2020-11-04 13:15 UTC
查看更新说明
- Change markdown render engine on the Vue front
- Update Google Vision to 2.1.2 (Node 10+ is now required for Google Vision API)
- Bug fixes in the Python client
- Security fixes
- V1.2.0V1.2.0 2020-10-02 · 2020-10-02 16:11 UTC
查看更新说明
Changes:
- Fix #488 in python client
- Update on link detection, it can recognise split link.
- Update on wordToLigne, you can now increment/decrement avgWordsSpace and commonWordsSpace.
- Update on jsonExport, it export now the font id and the font size. With pdfminer you also have this informations at character level.
- Update on pdfMiner extractor, the source of the image is now found. If the ocrImage = true, you can know from which image the text is extracted.
- Update some security issues.
- v1.1.2v1.1.2 Security fix PR #491 and #4922020-09-14 · 2020-09-14 07:46 UTC
查看更新说明
Security vulnerability fixed
- Bumps bl from 4.0.2 to 4.0.3
- Bumps node-fetch from 2.6.0 to 2.6.1.
- v1.1.1v1.1.1 Security fix PR #484 + Version python client #483 2020-08-18 · 2020-08-18 08:37 UTC
查看更新说明
Security vulnerability fixed
- Bump serialize-javascript from 3.0.0 to 3.1.0 in /demo/vue-viewer
Change
- python client version bump to 3.2.3
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
[!WARNING] This project is no longer maintained. Security patches are not being applied. Consider using an alternative such as LiteParse if you need a local, Apache 2.0–licensed parsing solution.
-
Parsr, is a minimal-footprint document (image, pdf, docx, eml) cleaning, parsing and extraction toolchain which generates readily available, organized and usable data in JSON, Markdown (MD), CSV/Pandas DF or TXT formats.
-
It provides analysts, data scientists and developers with clean structured and label-enriched information set for ready-to-use applications ranging from data entry and document analysts automation, archival, and many others.
-
Currently, Parsr can perform: document cleaning, hierarchy regeneration (words, lines, paragraphs), detection of headings, tables, lists, table of contents, page numbers, headers/footers, links, and others. Check out all the features.
Table of Contents
Getting Started
Installation
-- The advanced installation guide is available here --
The quickest way to install and run the Parsr API is through the docker image:
docker pull axarev/parsr
If you also wish to install the GUI for sending documents and visualising results:
docker pull axarev/parsr-ui-localhost
Note: Parsr can also be installed bare-metal (not via Docker containers), the procedure for which is documented in the installation guide.
Usage
-- The advanced usage guide is available here --
To run the API, issue:
docker run -p 3001:3001 axarev/parsr
which will launch it on http://localhost:3001.
Consult the documentation on the usage of the API.
-
To access the python client to Parsr API, issue:
pip install parsr-clientTo sample the Jupyter Notebook, using the python client, head over to the jupyter demo.
- To use the GUI tool (the API needs to already be running), issue:
Then, access it through http://localhost:8080.docker run -t -p 8080:80 axarev/parsr-ui-localhost:latest
Refer to the Configuration documentation to interpret the configurable options in the GUI viewer.
The API based usage and the command line usage are documented in the advanced usage guide.
Documentation
All documentation files can be found here.
Contribute
Please refer to the contribution guidelines.
Third Party Licenses
Third Party Libraries licenses for its dependencies:
- QPDF: Apache http://qpdf.sourceforge.net
- ImageMagick: Apache 2.0 https://imagemagick.org/script/license.php
- Pdfminer.six: MIT https://github.com/pdfminer/pdfminer.six/blob/master/LICENSE
- PDF.js: Apache 2.0 https://github.com/mozilla/pdf.js
- Tesseract: Apache 2.0 https://github.com/tesseract-ocr/tesseract
- Camelot: MIT https://github.com/camelot-dev/camelot
- MuPDF (Optional dependency): AGPL https://mupdf.com/license.html
- Pandoc (Optional dependency): GPL https://github.com/jgm/pandoc
License
Copyright 2020 AXA Group Operations S.A.
Licensed under the Apache 2.0 license (see the LICENSE file).