Book Image

The Applied AI and Natural Language Processing Workshop

By : Krishna Sankar, Jeffrey Jackovich, Ruze Richards
Book Image

The Applied AI and Natural Language Processing Workshop

By: Krishna Sankar, Jeffrey Jackovich, Ruze Richards

Overview of this book

Are you fascinated with applications like Alexa and Siri and how they accurately process information within seconds before returning accurate results? Are you looking for a practical guide that will teach you how to build intelligent applications that can revolutionize the world of artificial intelligence? The Applied AI and NLP Workshop will take you on a practical journey where you will learn how to build artificial intelligence (AI) and natural language processing (NLP) applications with Amazon Web services (AWS). Starting with an introduction to AI and machine learning, this book will explain how Amazon S3, or Amazon Simple Storage Service, works. You’ll then integrate AI with AWS to build serverless services and use Amazon’s NLP service Comprehend to perform text analysis on a document. As you advance, the book will help you get to grips with topic modeling to extract and analyze common themes on a set of documents with unknown topics. You’ll also work with Amazon Lex to create and customize a chatbot for task automation and use Amazon Rekognition for detecting objects, scenes, and text in images. By the end of The Applied AI and NLP Workshop, you’ll be equipped with the knowledge and skills needed to build scalable intelligent applications with AWS.
Table of Contents (8 chapters)
Preface

2. Analyzing Documents and Text with Natural Language Processing

Activity 2.01: Integrating Lambda with Amazon Comprehend to Perform Text Analysis

Solution:

  1. Upload the test_s3trigger_configured.txt file to our S3 bucket to verify the Lambda s3_trigger function was configured successfully.
  2. Navigate to the S3 page: https://console.aws.amazon.com/s3/.
  3. Click the bucket name you are using to test the s3_trigger function (in my case, aws-ml-s3-trigger-202001181023):

    Figure 2.55: S3 bucket list

  4. Click Upload:

    Figure 2.56: S3 bucket list upload screen

    The following screen will display:

    Figure 2.57: S3 Upload bucket Add files screen

  5. Click Add files:

    Figure 2.58: S3 Add files selection screen

  6. Navigate to the test_s3trigger_configured.txt file location.
    Select the file.

    The file contains the following text:

    I am a test file to verify the s3 trigger was successfully configured on 1/20/2020 at 1:34 PM and tried 3 times!

    Before we execute the s3_trigger, consider the output...