Book Image

Machine Learning with AWS

By : Jeffrey Jackovich, Ruze Richards
Book Image

Machine Learning with AWS

By: Jeffrey Jackovich, Ruze Richards

Overview of this book

<p>Machine Learning with AWS is the right place to start if you are a beginner interested in learning useful artificial intelligence (AI) and machine learning skills using Amazon Web Services (AWS), the most popular and powerful cloud platform. You will learn how to use AWS to transform your projects into apps that work at high speed and are highly scalable. From natural language processing (NLP) applications, such as language translation and understanding news articles and other text sources, to creating chatbots with both voice and text interfaces, you will learn all that there is to know about using AWS to your advantage. You will also understand how to process huge numbers of images fast and create machine learning models.</p> <p>By the end of this book, you will have developed the skills you need to efficiently use AWS in your machine learning and artificial intelligence projects.</p>
Table of Contents (9 chapters)
Machine Learning with AWS
Preface

Creating a Custom Chatbot


In this topic, we will create a custom chatbot to get stock market quotes, using Amazon Lex. The bot will listen to our utterances for a valid intent: GetQuote. This signals to the bot that we had, for example to get a stock market quote for a given stock ticker symbol, will reside in a Slot named ticker. The bot will then look up the quote for that ticker symbol from a freely available financial API named IEX, and will return the information to the user via a conversational response:

Note

A stock ticker symbol is the standard way in which stocks that are traded on an exchange, such as the New York Stock Exchange or NASDAQ are represented. A sequence of alphabetical letters represents the company's stock which is being traded.

Figure 4.18: The chatbot's workflow

We can create a flowchart for this process, as shown in the following diagram. Let's go over it in some more detail:

Figure 4.19: Flowchart of the chatbot's workflow

Recognizing the Intent and Filling the Slot...