Book Image

Intelligent Document Processing with AWS AI/ML

By : Sonali Sahu
Book Image

Intelligent Document Processing with AWS AI/ML

By: Sonali Sahu

Overview of this book

With the volume of data growing exponentially in this digital era, it has become paramount for professionals to process this data in an accelerated and cost-effective manner to get value out of it. Data that organizations receive is usually in raw document format, and being able to process these documents is critical to meeting growing business needs. This book is a comprehensive guide to helping you get to grips with AI/ML fundamentals and their application in document processing use cases. You’ll begin by understanding the challenges faced in legacy document processing and discover how you can build end-to-end document processing pipelines with AWS AI services. As you advance, you'll get hands-on experience with popular Python libraries to process and extract insights from documents. This book starts with the basics, taking you through real industry use cases for document processing to deliver value-based care in the healthcare industry and accelerate loan application processing in the financial industry. Throughout the chapters, you'll find out how to apply your skillset to solve practical problems. By the end of this AWS book, you’ll have mastered the fundamentals of document processing with machine learning through practical implementation.
Table of Contents (16 chapters)
1
Part 1: Accurate Extraction of Documents and Categorization
6
Part 2: Enrichment of Data and Post-Processing of Data
10
Part 3: Intelligent Document Processing in Industry Use Cases

Understanding document extraction – the IDP extraction stage with Amazon Comprehend

In the preceding example for Amazon Comprehend’s extraction, the input required was of the text type.

How can we process documents and extract insights with Amazon Comprehend? For this solution, we will use Amazon Textract in conjunction with Amazon Comprehend for accurate data extraction.

See Figure 4.9 for an architecture that would serve as the extraction part of the IDP pipeline:

Figure 4.9 – Document extraction stage with Amazon Comprehend

We have walked through the key features of Amazon Comprehend on the AWS Management Console. But we can use Amazon Comprehend APIs to automate extraction programmatically. Now let’s walk through some sample code for extracting pre-trained entities from any type of document:

  1. Get the boto3 client for Amazon Textract and Amazon Comprehend:
    s3=boto3.client('s3')
    textract = boto3.client(&apos...