mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 17:09:11 +08:00
fix bug about divided by zero (#1482)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
99f7bbaaa2
commit
d29fd52e14
@ -287,7 +287,7 @@ class RAGFlowPdfParser:
|
||||
)
|
||||
|
||||
# solve char content confusion
|
||||
record_error_length, ct = 0, 1
|
||||
record_error_length, ct = 0, 0.001
|
||||
for c in chars[0:128]:
|
||||
ii = Recognizer.find_overlapped(c, bxs)
|
||||
if ii is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user