|
1 år sedan | |
---|---|---|
extracted_images | 1 år sedan | |
LLMAgent.py | 1 år sedan | |
README.md | 1 år sedan | |
document_.py | 1 år sedan | |
extract_financial_report.py | 1 år sedan | |
extract_price.py | 1 år sedan | |
get_info.py | 1 år sedan | |
instance_locate.py | 1 år sedan | |
lmu.py | 1 år sedan | |
matcher.py | 1 år sedan | |
ocr_api.py | 1 år sedan | |
project_loc.py | 1 år sedan | |
requirements.txt | 1 år sedan | |
responser.py | 1 år sedan | |
scan_dir.py | 1 år sedan | |
text_extractor.py | 1 år sedan | |
tools.py | 1 år sedan |
主要模块描述 1、tools 大纲解析模块 2、get_info PDF信息抽取模块 3、matcher 段落定位模块
4、projectloc 项目业绩的表格定位模块 5、responser 格式化模块 6、lmu 摘要生成模块 7、LLMAgent 大模型调用模块 8、document 招标文件解析模块
1. camelot-py git源下载
git clone https://www.github.com/camelot-dev/camelot
修改pyproject.toml中 pdfminer-six = "^20231228"
安装命令: 进入camelot目录下,pip install -e .
2. 在wsl Debian中安装 ghostscript 【模块本身】
apt install ghostscript
3. ghostscript 下载
pip install ghostscript==0.7.0 【模块驱动】
4. 代码修改 【CV运行时不需要设置宽高,使用默认即可】
tables_pro = camelot.read_pdf(
self.file_path,
# flavor='stream',
pages=str(page_number+1),
# edge_tol=200,
# row_tol=50,
)