Преглед на файлове

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 преди 1 година
родител
ревизия
d29fd52e14
No account linked to committer's email address
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      deepdoc/parser/pdf_parser.py

+ 1
- 1
deepdoc/parser/pdf_parser.py Целия файл

@@ -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…
Отказ
Запис