amazon-textract-textractor icon indicating copy to clipboard operation
amazon-textract-textractor copied to clipboard

Re-export edited entities to JSON

Open rasrivid opened this issue 2 years ago • 2 comments

As a prior to the geofinder feature, we need the ability to export edited entities back into the Textract API response format. In the image below, the customer would be able to generate re-labeled key-values and store them in the Document object but they need to be able to export the entire document JSON with the edited entities.

Screenshot 2023-02-15 at 11 13 19 AM

Along the lines of: document.pages[1].key_values = {key: value + '_edited' for key, value in document.pages[1].key_values} document.export("edited_kv_document.json")

rasrivid avatar Feb 15 '23 19:02 rasrivid

Duplicate of #120

ThomasDelteil avatar Feb 15 '23 19:02 ThomasDelteil

The geofinder is broader than the proposed word_1, word_2 parameters in the function call. Essentially the concept is the ability to define areas within a document to operate on, with the ability to remove elements from the area as well, allowing for very flexible logic to parse the geometry of a document. I would suggest to apply a similar concept when planning for the geofinder.

schadem avatar Feb 15 '23 20:02 schadem