amazon-textract-response-parser icon indicating copy to clipboard operation
amazon-textract-response-parser copied to clipboard

EntityTypes in APICellBlock in src-js

Open anjanvb opened this issue 3 years ago • 0 comments

Would it be a good idea to add EntityTypes to ApiCellBlock, in src-js?. EntityTypes for BlockType : "CELL" can be useful to find out COLUMN_HEADERS instead of assuming that cellsAt(1, null) will always be the header since there are misses in detecting headers in certain cases. This will give developers the flexibility to use cellsAt(1, null) as headers if cell block with "EntityTypes": [ "COLUMN_HEADER" ] is missing.

{
    "BlockType": "CELL",
    "Confidence": 93.32925415039062,
    "RowIndex": 1,
    "ColumnIndex": 1,
    "RowSpan": 1,
    "ColumnSpan": 1,
    "Geometry": {...},
    "Id": "cda64a58-28d2-47d9-857e-bd7fd9f99d57",
    "Relationships": [
                {
                    "Type": "CHILD",
                    "Ids": [  "b49e883c-bd8b-43e2-aed6-0aa93a52b2b1" ]
                }
    ],
    "EntityTypes": [  "COLUMN_HEADER" ]
}

anjanvb avatar Jul 29 '22 04:07 anjanvb