PDF Parsing Tool: GOT's vLLM acceleration implementation, MinerU for layout recognition, and GOT for table formula parsing.
Last updated Jul 6, 2026
66
Stars
5
Forks
12
Issues
0
Stars/day
Attention Score
16
Language breakdown
Python 99.9%
Dockerfile 0.1%
Shell 0.0%
▸ Files
click to expand
README
本项目基于MinerU和GOT-OCR2.0 实现pdf解析
本项目仅为学习交流, 欢迎大家对不合适的地方改进
请大家关注GOT,MinerU🔥 2024/11/7 debug 修复了batch推理不说人话,vllm batch推理吐token的速度自测几个case可以提升数倍
- 本项目主要修改:
- 本项目主要流程:
运行
适当安装依赖,主要为torch 2.3.1, vllm 0.5.3, transformer 或直接安装新环境env create -f environment.yml
项目安装:
进入项目根目录,执行install -e . 安装, 其会自动安装MinerU和GOT-OCR2.0所依赖的库
需要把PDFparsing/magic-pdf.json的模型路径替换成你的路径,PDFparsing/init.py需同样替换
模型是重写了名字,所以模型权重目录中的config中的模型名称需要改为Qwen2GotForCausalLM
尚待改进
vllm版本的GOT 输入为batch时候生成的不说人话- 最后生成的text不是纯markdown, GOT-OCR2.0将表格转为了latex, 所以最后生成的是markdown格式和latex表格的混合
🔗 More in this category