diff --git a/ClientLibrary/Structures/LuisResult.cs b/ClientLibrary/Structures/LuisResult.cs index 5086523..3804152 100644 --- a/ClientLibrary/Structures/LuisResult.cs +++ b/ClientLibrary/Structures/LuisResult.cs @@ -135,12 +135,8 @@ namespace Microsoft.Cognitive.LUIS } var entities = (JArray)result["entities"] ?? new JArray(); Entities = ParseEntityArrayToDictionary(entities); - if (result["compositeEntities"] != null) - { - var compositeEntities = (JArray)result["compositeEntities"] ?? new JArray(); - CompositeEntities = ParseCompositeEntityArrayToDictionary(compositeEntities); - } - + var compositeEntities = (JArray)result["compositeEntities"] ?? new JArray(); + CompositeEntities = ParseCompositeEntityArrayToDictionary(compositeEntities); } /// diff --git a/Sample/Sample/MainWindow.xaml.cs b/Sample/Sample/MainWindow.xaml.cs index 4d55fcc..bb7e683 100644 --- a/Sample/Sample/MainWindow.xaml.cs +++ b/Sample/Sample/MainWindow.xaml.cs @@ -49,6 +49,7 @@ namespace Sample { new Scenario { Title = "Scenario 1: Make a prediction", PageClass=typeof(MakePredictionPage)} }; + _scenariosControl.Disclaimer = "Microsoft will receive the uploaded text and may use it to improve LUIS and related services. By submitting the text, you confirm that you consent."; } public string SubscriptionKey @@ -58,5 +59,10 @@ namespace Sample return _scenariosControl.SubscriptionKey; } } + + public void Log(string logMessage) + { + _scenariosControl.Log(logMessage); + } } } diff --git a/Sample/Sample/MakePredictionPage.xaml b/Sample/Sample/MakePredictionPage.xaml index d694e21..5c8a322 100644 --- a/Sample/Sample/MakePredictionPage.xaml +++ b/Sample/Sample/MakePredictionPage.xaml @@ -4,16 +4,61 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:Sample" - mc:Ignorable="d" - d:DesignHeight="300" d:DesignWidth="300" - Title="MakePredictionPage"> + mc:Ignorable="d" d:DesignWidth="300" + Title="MakePredictionPage" Height="403"> - - + + + + + + + + + +