-
Fix: partition pdf overflow error (#2054)
发布于
2023-11-10 19:01:46 +00:00 Closes #2050.
Summary
- set zoom to
1if zoom is less than0when parsing Tesseract OCR
data - update
determine_pdf_auto_strategyto return thehi_resstrategy
if eitherinfer_table_structureorextract_images_in_pdfis true
Testing
PDF:
getty_62-62.pdfRun the following code in both the
mainbranch and thecurrent
branch.from unstructured.partition.pdf import partition_pdf elements = partition_pdf( filename="getty_62-62.pdf", extract_images_in_pdf=True, infer_table_structure=True, chunking_strategy="by_title", max_characters=4000, new_after_n_chars=3800, combine_text_under_n_chars=2000, image_output_dir_path=path, )下载附件
- set zoom to