Преглед изворни кода

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…
Откажи
Сачувај