medium severityunstructured.partition.pdf.partition_pdf (with infer_table_structure=True)
TypeError when calling partition_pdf(filename, strategy='hi_res', infer_table_structure=True): 'get_model() got an unexpected keyword argument 'ocr_languages'' or 'partition_pdf() got multiple values for keyword argument 'infer_table_structure''. No Table elements extracted; falls back to text or CompositeElement.
Root cause
Version mismatch between unstructured (0.11.4) and outdated unstructured-inference (0.7.8), causing TypeError in model loading ('ocr_languages' unexpected) and duplicate 'infer_table_structure' keyword argument when using hi_res strategy and infer_table_structure=True, likely due to internal function calls passing the arg twice.
unstructuredunstructured-inferencepartition_pdfTypeErrorhi_restable extractionpdfversion mismatch