aws-samples / aws-samples/amazon-textract-textractor

Re-export edited entities to JSON

Open
#165 2 comments 0 reactions 1 assignee Claimed by @rasrivid View on GitHub
Dominant language
Jupyter Notebook
Stars
493
Forks
163
PR merge metrics
No merged PRs in 30d

Description

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")

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.