Git Product home page Git Product logo

amazon-textract-a2i-pdf's Introduction

Processing PDF documents with a human loop with Amazon Textract and Amazon A2I

Prerequisites

  1. Node.js
  2. Python
  3. AWS Command Line Interface (AWS CLI)β€”for instructions, see Installing the AWS CLI)

Deployment

The following code deploys the reference implementation in your AWS account. The solution deploys different components, including an S3 bucket, Step Functions, an Amazon Simple Queue Service (Amazon SQS) queue, and AWS Lambda functions using the AWS Cloud Development Kit (AWS CDK), which is an open-source software development framework to model and provision your cloud application resources using familiar programming languages.

  1. Install AWS CDK:
npm install -g aws-cdk
  1. Download the repo to your local machine:
git clone https://github.com/aws-samples/amazon-textract-a2i-pdf
  1. Go to the folder amazon-textract-a2i-pdf and enter the following:
pip install -r requirements.txt
  1. Bootstrap AWS CDK:
cdk bootstrap
  1. Deploy:
cdk deploy
  1. Create a private team: https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-management.html

  2. Create a human review workflow: https://console.aws.amazon.com/a2i/home?region=us-east-1#/human-review-workflows

  3. Open the file multipagepdfa2i/multipagepdfa2i_stack.py. Update line 23 with the ARN of the human review workflow.

SAGEMAKER_WORKFLOW_AUGMENTED_AI_ARN_EV = "" 9. Run "cdk deploy" to update the solution with human review workflow arn.

Clean Up

  1. First you'll need to completely empty the S3 bucket that was created.
  2. Finally, you'll need to run:
cdk destroy

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

amazon-textract-a2i-pdf's People

Contributors

darwaishx avatar nick-aws-sa avatar amazon-auto avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.