O'Reilly logo

Learning Microsoft Cognitive Services - Second Edition by Leif Larsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connecting to the smart-house application

To be able to easily work with LUIS, we will want to add the NuGet client package. In the smart-house application, go to the NuGet package manager and find the Microsoft.Cognitive.LUIS package. Install this to the project.

We will need to add a new class called Luis. Place the file under the Model folder. This class will be in charge of calling the endpoint and processing the result.

As we will need to test this class, we will need to add a View and a ViewModel. Add the files called LuisView.xaml to the View folder, and LuisViewModel.cs to the ViewModel folder.

The View should be rather simple. It should contain two TextBox elements, one for inputting requests and the other for displaying results. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required