Closed liyang79 closed 2 months ago
Hi! I have been getting the same error today when trying to use partition_pdf - TypeError: UnstructuredTableTransformerModel.predict() got an unexpected keyword argument 'result_format'
When the infer_table_structure=False
it manages to partition the pdf file, but that is not a solution in my case since the Tables are the critical elements that need to be extracted.
I have the same problem here!
Hi @liyang79 @IngLP
I think you're using an old version of unstructured-inference library (0.7.15
). You won't get this error if you upgrade both unstructured-inference and unstructured libraries to the latest versions.
@christinestraub You're right. Problem is solved after upgrading the latest unstructured-inference library. Thanks.
@christinestraub I have: Python3.10, unstructured = {extras = ["pdf"], version = "^0.14.8"} in my poetry config, unstructured 0.14.8 and unstructured-inference 0.7.36. But I still get the error.
@IngLP Can you please provide a pdf document that we could use to reproduce?
Hi @christinestraub , I deleted and recreated the whole Python environment and now everything works. Thank you for your help.
Describe the bug partition_pdf got
TypeError: UnstructuredTableTransformerModel.predict() got an unexpected keyword argument 'result_format'
To Reproduce
Expected behavior No error.
Screenshots
Environment Info Please run
python scripts/collect_env.py
and paste the output here.Additional context Add any other context about the problem here.