Book Image

Learning Microsoft Cognitive Services

By : Leif Larsen
Book Image

Learning Microsoft Cognitive Services

By: Leif Larsen

Overview of this book

Take your app development to the next level with Learning Microsoft Cognitive Services. Using Leif's knowledge of each of the powerful APIs, you'll learn how to create smarter apps with more human-like capabilities. ? Discover what each API has to offer and learn how to add it to your app ? Study each AI using theory and practical examples ? Learn current API best practices
Table of Contents (20 chapters)
Learning Microsoft Cognitive Services
About the Author
About the Reviewer
Customer Feedback
Additional Information on Linguistic Analysis

Training a model

Now that we have a working model, it is time to put it into action.

Training and publishing the model

The first step to using the model is to make sure the model has some utterances to work with. As we have seen, we have added one utterance per intent for now. Before we deploy the application, we need more.

Think of three to four different ways to set or get the room temperature and add them, specifying the entities and intents. Also add a couple of utterances that fall into the None intent, just for reference.

When we have added new utterances, we need to train the model. Doing so will make LUIS develop code to recognize relevant entities and intents in the future. This process is done periodically; however, it is wise to do it when you have made changes, before publication. This can be done by clicking on the Train button, in the bottom-left corner of the screen.

With the training completed, we can now publish the application. This will deploy the models to an HTTP endpoint...