azure-sdk-for-python: Document intelligence layout-model doesn't detect tables for .xlsx
- Package Name: azure-ai-documentintelligence
- Package Version: 1.0.0b1
No tables are detected for a .xlsx file - the poller’s result field of tables remains empty.
Although I suspected loosely written tables might not get detected, I assumed that areas that have been declared as “tables” in the excel application will get extracted.
The analyzed .xlsx file contained one such defined table, along with few subtotal fields. Code used:
with open('/tmp/example.xlsx','rb') as f:
poller = document_intelligence_client.begin_analyze_document(
model_id="prebuilt-layout",
analyze_request=f,
content_type="application/octet-stream"
)
form_recognizer_results_markdown = poller.result()
print(form_recognizer_results_markdown.tables)
I was about to consider it a feature request, but given it some thought, it deviates quite a bit from behavior I expected 😃
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (3 by maintainers)
We talked to Microsoft and xlsx Support is on the road map. But if it takes 3 oder 9 month we don’t know!
We don’t yet have direct support for this capability. A suboptimal workaround is to print spreadsheet to PDF first if the tables fit within a single page.
@bojunehsu Where can we track this feature request?
I wanted to feed a xlsx to a LLM via a pipeline that already deals with tables by
tablesparameter of layout-model’s result.