aws-samples / amazon-textract-response-parser

Parse JSON response of Amazon Textract
Apache License 2.0
218 stars 95 forks source link

TRP.js v0.3.0 release #144

Closed athewsey closed 1 year ago

athewsey commented 1 year ago

Issue #, if available: #78, #80

Description of changes:

Testing:


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

athewsey commented 1 year ago

Some alpha user feedback:

  1. It's not obvious from where to import AggregationMethod to configure e.g. getOcrConfidence(AggregationMethod.Min) - would be helpful to clarify this
  2. Would prefer getOcrConfidence() to return null rather than Infinity/-Infinity/NaN when the input is empty - particularly because DynamoDB doesn't support these special floating point values and JavaScript behaves weirdly with some of them (for e.g. JSON.stringify converts Infinity to null!).
  3. There's currently no nice way to create/iterate table Rows ignoring merged cells: Table.cellAt() and Table.cellsAt() support an ignoreMerged option, but listRows(), rowAt(), etc do not.
athewsey commented 1 year ago

Initial alpha feedback has been addressed and no recent requests - releasing & merging 0.3.0