amazon-textract-textractor
amazon-textract-textractor copied to clipboard
Re-export edited entities to JSON
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.

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")
Duplicate of #120
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.