Closed roysaad closed 1 year ago
The type ApiTableCellEntityType is defined as
export declare const enum ApiTableCellEntityType { Title = "TABLE_TITLE", Footer = "FOOTER", SectionTitle = "SECTION_TITLE", ColumnHeader = "COLUMN_HEADER", Summary = "TABLE_SUMMARY" } while the entity types returned by Textract are :
KEY | VALUE | COLUMN_HEADER | TABLE_TITLE | TABLE_FOOTER | TABLE_SECTION_TITLE | TABLE_SUMMARY | STRUCTURED_TABLE | SEMI_STRUCTURED_TABLE
FOOTER should be chaned to TABLE_FOOTER and SECTION_TITLE should be changed to TABLE_SECTION_TITLE
Hi & thanks for raising this. A tentative fix is now published in NPM version 0.3.1-alpha.2: Please try it out and let us know if you find any problems! All being well, will try to roll out the mainline v0.3.1 soon.
This should now be fixed as of today's merge of the linked PR and the mainline release of v0.3.1 to NPM. Please re-open if still facing problems!
The type ApiTableCellEntityType is defined as
export declare const enum ApiTableCellEntityType { Title = "TABLE_TITLE", Footer = "FOOTER", SectionTitle = "SECTION_TITLE", ColumnHeader = "COLUMN_HEADER", Summary = "TABLE_SUMMARY" } while the entity types returned by Textract are :
FOOTER should be chaned to TABLE_FOOTER and SECTION_TITLE should be changed to TABLE_SECTION_TITLE