Parsr

axa-groupApache-2.0更新放缓

把 PDF、扫描件和图片解析成带版面结构、表格和文本的富结构化数据,适合做文档入库和 RAG 前的预处理。

Transforms PDF, Documents and Images into Enriched Structured Data

v1.2.2发布于 2020-11-20 15:45 UTC6,177star318fork同步于 2026-11-10 17:35 UTC

怎么上手

由 README 提炼,执行前请确认
docker pull axarev/parsr
docker run -p 3001:3001 axarev/parsr
硬件要求按 README 说明

README 未说明显存或 GPU 要求;通过 Docker 镜像运行,OCR 依赖 Tesseract,未提及 CPU/GPU 厂商型号。

有 Docker 镜像
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

把 PDF、图片、docx、eml 清洗解析成结构化 JSON、Markdown、CSV 或 TXT 的工具链

把 PDF、扫描件和图片解析成带版面结构、表格和文本的富结构化数据,适合做文档入库和 RAG 前的预处理。

核心能力

  • 重建词、行、段落的文档层级结构
  • 检测标题、表格、列表、目录、页眉页脚和链接
  • 输出 JSON、Markdown、CSV/Pandas DF 或 TXT
  • 提供 REST API 与本地 GUI 可视化结果
  • 附带 Python 客户端 parsr-client 调用 API

容易踩的坑

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

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v1.2.2
  1. v1.2.2最新正式版2020-11-20 · 2020-11-20 15:45 UTC
    • Security Fixes
  2. 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
  3. 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.
  4. 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.
  5. 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

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    [!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.

    1. To access the python client to Parsr API, issue:

      pip install parsr-client
      

      To sample the Jupyter Notebook, using the python client, head over to the jupyter demo.

    1. To use the GUI tool (the API needs to already be running), issue:
      docker run -t -p 8080:80 axarev/parsr-ui-localhost:latest
      
      Then, access it through http://localhost:8080.

    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:

    1. QPDF: Apache http://qpdf.sourceforge.net
    2. ImageMagick: Apache 2.0 https://imagemagick.org/script/license.php
    3. Pdfminer.six: MIT https://github.com/pdfminer/pdfminer.six/blob/master/LICENSE
    4. PDF.js: Apache 2.0 https://github.com/mozilla/pdf.js
    5. Tesseract: Apache 2.0 https://github.com/tesseract-ocr/tesseract
    6. Camelot: MIT https://github.com/camelot-dev/camelot
    7. MuPDF (Optional dependency): AGPL https://mupdf.com/license.html
    8. 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).