QAnything icon indicating copy to clipboard operation
QAnything copied to clipboard

[BUG] pdf解析会丢失部分内容

Open flyuuo9 opened this issue 8 months ago • 0 comments

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

  • [X] 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

  • [X] 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior

06.05更新的qanything-python分支,在mac本地运行

通过调试发现是layout recognize识别不到,在_concat_downward里的if not sec.get('layoutno')筛选掉了。

方向一:需要把threshold从0.4下调到0.01。 方向二:_concat_downward中对layoutno不做过滤

丢失的内容没有规律,很普通的文本,从遇到的现象看,文章尾部的一部分概率大一些,其次是表格里面的部分单元格,请问layoutno为空这种情况有人解决过吗?

期望行为 | Expected Behavior

内容完整

运行环境 | Environment

- OS:
- NVIDIA Driver:
- CUDA:
- docker:
- docker-compose:
- NVIDIA GPU:
- NVIDIA GPU Memory:

QAnything日志 | QAnything logs

No response

复现方法 | Steps To Reproduce

No response

备注 | Anything else?

No response

flyuuo9 avatar Jun 05 '24 03:06 flyuuo9