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:
Kevin Hu 2024-07-12 12:59:56 +08:00 committed by GitHub
parent 99f7bbaaa2
commit d29fd52e14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: