Coder Social home page Coder Social logo

textract's Introduction

textract

code to extract text using Amazon Textract and detect entities using Amazon Comprehend Medical. The detected entities are stored into a DynamoDB table. A sample image is provided in the images/ folder.

Steps

NOTE: Before running make sure you have AWS CLI installed and configured with appropriate IAM privilages. Look at the following link that explains how to install and configure the AWS CLI: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html

The default region for the CLI should be configured to the region where textract service is available.

  • download the repository to a folder.
  • run setup.py using python setup.py stack_name (stack name is the name of the cloudformation stack).

Ex: If your stack name is textract, you should run the command python setup.py textract.

  • run Textract_Comprehend.py using python Textract_Comprehend.py stack_name (stack name is the name of the cloudformation stack. Make sure its the same name as provided in the setup script).

Ex: After setting up, you should run the command python Textract_Comprehend.py textract.

Once Executed, you will be able to see the output of textract on the command line. You can navigate to the DynamoDB table to view the entities extracted by Comprehend Medical.

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.