Pārlūkot izejas kodu

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)
tags/v0.9.0
Kevin Hu pirms 1 gada
vecāks
revīzija
d29fd52e14
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      deepdoc/parser/pdf_parser.py

+ 1
- 1
deepdoc/parser/pdf_parser.py Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt