Kevin Hu
commited on
Commit
·
4e6516f
1
Parent(s):
984f31c
fix bug about divided by zero (#1482)
Browse files### What problem does this PR solve?
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
deepdoc/parser/pdf_parser.py
CHANGED
|
@@ -287,7 +287,7 @@ class RAGFlowPdfParser:
|
|
| 287 |
)
|
| 288 |
|
| 289 |
# solve char content confusion
|
| 290 |
-
record_error_length, ct = 0,
|
| 291 |
for c in chars[0:128]:
|
| 292 |
ii = Recognizer.find_overlapped(c, bxs)
|
| 293 |
if ii is None:
|
|
|
|
| 287 |
)
|
| 288 |
|
| 289 |
# solve char content confusion
|
| 290 |
+
record_error_length, ct = 0, 0.001
|
| 291 |
for c in chars[0:128]:
|
| 292 |
ii = Recognizer.find_overlapped(c, bxs)
|
| 293 |
if ii is None:
|