Book Image

Natural Language Processing with AWS AI Services

By : Mona M, Premkumar Rangarajan
Book Image

Natural Language Processing with AWS AI Services

By: Mona M, Premkumar Rangarajan

Overview of this book

Natural language processing (NLP) uses machine learning to extract information from unstructured data. This book will help you to move quickly from business questions to high-performance models in production. To start with, you'll understand the importance of NLP in today’s business applications and learn the features of Amazon Comprehend and Amazon Textract to build NLP models using Python and Jupyter Notebooks. The book then shows you how to integrate AI in applications for accelerating business outcomes with just a few lines of code. Throughout the book, you'll cover use cases such as smart text search, setting up compliance and controls when processing confidential documents, real-time text analytics, and much more to understand various NLP scenarios. You'll deploy and monitor scalable NLP models in production for real-time and batch requirements. As you advance, you'll explore strategies for including humans in the loop for different purposes in a document processing workflow. Moreover, you'll learn best practices for auto-scaling your NLP inference for enterprise traffic. Whether you're new to ML or an experienced practitioner, by the end of this NLP book, you'll have the confidence to use AWS AI services to build powerful NLP applications.
Table of Contents (23 chapters)
1
Section 1:Introduction to AWS AI NLP Services
5
Section 2: Using NLP to Accelerate Business Outcomes
15
Section 3: Improving NLP Models in Production

Building an Amazon Lex chatbot

In this section, we will execute the steps needed to build an Amazon Lex chatbot and use a built-in intent (which is a task performed by the bot based on a user request) to integrate our chatbot with the Amazon Kendra index we created in the preceding section. Please execute the steps as follows:

  1. In the AWS Management Console, type lex in the Services search bar at the top center of the page and select Amazon Lex from the list to go to the Amazon Lex console. On the left pane of the Amazon Lex console, click the Switch to the new Lex V2 console link, as shown in the next screenshot:
    Figure 11.5 – Switch to the new Lex V2 console

    Figure 11.5 – Switch to the new Lex V2 console

  2. On the Lex V2 console page, click Create bot on the right, as shown here:

    Figure 11.6 – Create bot

  3. In the Configure bot settings page, select Create for the Creation method. Under Bot configuration, type HomeBuyerResearch for the Bot name. In the IAM permissions section, select Create a role with basic...