Token导航 LogoToken导航TokenDH.com
KIND parser logo
文档知识stdio官方级别未说明来源级核验

KIND parser

MCP Server

KIND-Parser是一款高性能PDF解析工具,支持单次解析提取文本、布局和图像,并通过VLM技术识别复杂表格,生成层次化结构数据。适用于文档自动化处理、数据提取和内容管理场景。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
Python文档处理知识管理

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

41312432

提供方

41312432

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install -r requirements.txt

详细介绍

KIND解析器

|KIND项目解析器

✨ 特性

📄 Single-Pass PDF Parsing: Leverages docling---{Mu, Layout Model, Tableformer, EasyOCR} to extract all elements—text(to MD.), layout, and images.

🤖 VLM-Powered Table Recognition: Analyzes high-resolution table images with a VLM to accurately convert tables with complex merged cells into clean HTML.

🧠 Hierrarchical Structure Generation: Automatically builds a folder structure that mirrors the parent-child relationships defined in the MCP.

🧩 Modular Pipeline: Decouples the PDF Parsing, VLM Table Processing, and Content Structuring steps, allowing them to be run independently.

🚀 High-Performance Asynchronous Processing: Utilizes asyncio to efficiently process with concurrent processing.

⚙️ 详细工艺流程

该项目执行三个核心步骤,可以按顺序或独立运行以生成最终输出。

graph LR
    A[Step 1: Conversion] --> B[Step 2: VLM Processing] --> C[Step 3: Structuring]

    subgraph A
        A1(Input: PDF) --> A2{Docling Parse};
        A2 --> A3(Output: MD + Images);
    end

    subgraph B
        B1(Input: Table Images) --> B2{VLM HTML Parsing};
        B2 --> B3{Fix, Merge, Replace};
        B3 --> B4(Output: Final MD);
    end

    subgraph C
        C1(Input: Final MD) --> C2{Hierarchical Sectioning};
        C2 --> C3(Output: Structured Data);
    end

🚀 快速开始

  1. 需求

- Python 3.12+

- 文档2.46.0

- pymupdf4llm

- 简易光学字符识别

- 模型\[布局模型、Tableformer(准确、快速)、EasyOCR(ko)、VLM(Nanonets OCR)\]

  1. 安装

# 1. Clone the repository
git clone 
cd kind_parser

# 2. Install dependencies
pip install -r requirements.txt

# 3. Prepare Models
# Place the model artifacts in the directory specified by the --model_path argument.
  1. 运行管道

要按顺序运行整个管道,请使用提供的shell脚本。


# Execute the full pipeline
bash pdf_parsing.sh

🔧 用法

您可以使用main.py中的--step参数独立运行每个步骤。这对于调试或重新处理特定阶段非常有用。

  • 步骤1:pdf转换

解析源PDF文件以生成Markdown和高分辨率表格图像。


  python main.py --steps pdf_conversion
  • 步骤2:vlm_处理

使用VLM处理步骤1中的表图像,然后替换并合并原始Markdown中的表。


  python main.py --steps vlm_processing
  • 第三步:结构化

从步骤2中获取最终的Markdown,并将其拆分为“Sections”(Gwan)和“Articles”(Jo),以创建最终的文件夹结构。


  python main.py --steps structuring
  • 命令行参数

关键参数在utils/arg_parser.py中定义,可以在运行时动态更改。


  python main.py \
  --accelerator_thread 128 \
  --model_path "$MODEL_PATH" \
  --data_dir "$DATA_DIR" \
  --output_dir "$OUTPUT_DIR" \
  --file_list_path "$FILE_LIST_PATH" \
  --pdf_parsing_num_workers 10 \
  --image_resolution 4.0 \
  --vlm_base_url "http://50.50.79.151:8000/v1" \
  --vlm_model_name "Nanonets-OCR-s" \
  --vlm_concurrency_limit 300 \
  --steps "pdf_conversion"
  ...

🏗️ 项目结构

parser/
├── main.py                 # CLI Entrypoint
├── pdf_parsing.sh          # Pipeline Execution Script
├── core/                   # Core components (Orchestrator, Interfaces)
├── process/                # Independent pipeline steps
├── service-object/         # Business logic services (PDFConverter, VLMProcessor, etc.)
├── models/                 # Data classes and models (FileInfo, DocumentTree)
└── utils/                  # Utility modules (ArgParser, Constants)

🙏 致谢

如果没有文档库强大的文档分析功能,这个项目是不可能的。

📝 待办事项

[ ✅ ] Parallel Processing (Auto-calculate process num)

[ ✅ ] Constants to paths and parameters.

[ 🟢 ] Unit and integration tests for each service and step.

[ 🔴 ] Table postprocess Algorithm.

目录标签

目录标签

Python文档处理知识管理PDF解析本地部署表格识别文档自动化层次化结构高性能处理

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP