import json
ifp = open('log.json')
response = json.load(ifp)
for bodyRow in response['document']['pages'][0]['tables'][1]['bodyRows']:
for cell in bodyRow['cells']:
print(f'rowSpan is {cell["rowSpan"]}]')
log.json
is the ocr and parsed result of table.
I write this Python script to parse this table with Processors "Form parser" by Google documentai_v1beta3, want to find out the rowSpan
of all cells.
There are some cells that span 2 or 3 rows, but I always get the result 1. Is that a bug of documentai_v1beta3?
Table screenshot: