unstructured
1b70ea86 - fix: update table structure eval to use new table inference interface (#2306)

Commit
2 years ago
fix: update table structure eval to use new table inference interface (#2306) Provide OCR tokens for table eval script. Right now `unstructured-inference` can compute OCR components when they are not passed in but in a future release we will be required to pass in OCR results into table structure extraction model: https://github.com/Unstructured-IO/unstructured-inference/blob/d3b298131352b9676bf7d65de757c85561491e31/CHANGELOG.md#0719 This PR prepares for the upcoming change by passing ocr token into table structure extraction process. ## test Create a new virtual env that follows the setup in readme then upgrade `inference` with `pip install unstructured-inference --upgrade`. Run test `PYTHONPATH=. pytest test_unstructured/metrics/test_table_structure.py` would fail on main branch but fixed in this PR. --------- Co-authored-by: Austin Walker <awalk89@gmail.com>
Author
Parents
Loading