Update solution to add missing nuget build configurations.

Update to match changes to LUIS model.
This commit is contained in:
Chris McConnell 2018-04-25 17:34:33 -07:00
Родитель 18234515c8
Коммит 0d58efb9e5
7 изменённых файлов: 123 добавлений и 121 удалений

Просмотреть файл

@ -158,8 +158,8 @@ Global
{6462DA5D-27DC-4CD5-9467-5EFB998FD838}.Documentation|Any CPU.Build.0 = Documentation|Any CPU
{6462DA5D-27DC-4CD5-9467-5EFB998FD838}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6462DA5D-27DC-4CD5-9467-5EFB998FD838}.Release|Any CPU.Build.0 = Release|Any CPU
{C1F54CDC-AD1D-45BB-8F7D-F49E411AFAF1}.Debug - NuGet Packages|Any CPU.ActiveCfg = Debug|Any CPU
{C1F54CDC-AD1D-45BB-8F7D-F49E411AFAF1}.Debug - NuGet Packages|Any CPU.Build.0 = Debug|Any CPU
{C1F54CDC-AD1D-45BB-8F7D-F49E411AFAF1}.Debug - NuGet Packages|Any CPU.ActiveCfg = Debug - NuGet Packages|Any CPU
{C1F54CDC-AD1D-45BB-8F7D-F49E411AFAF1}.Debug - NuGet Packages|Any CPU.Build.0 = Debug - NuGet Packages|Any CPU
{C1F54CDC-AD1D-45BB-8F7D-F49E411AFAF1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C1F54CDC-AD1D-45BB-8F7D-F49E411AFAF1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C1F54CDC-AD1D-45BB-8F7D-F49E411AFAF1}.Documentation|Any CPU.ActiveCfg = Documentation|Any CPU
@ -270,8 +270,8 @@ Global
{8D6F4046-0971-4E24-8E4D-F8175C6DFF2B}.Documentation|Any CPU.ActiveCfg = Documentation|Any CPU
{8D6F4046-0971-4E24-8E4D-F8175C6DFF2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8D6F4046-0971-4E24-8E4D-F8175C6DFF2B}.Release|Any CPU.Build.0 = Release|Any CPU
{183B3324-4CFF-477A-8EAE-73953D3E383D}.Debug - NuGet Packages|Any CPU.ActiveCfg = Debug|Any CPU
{183B3324-4CFF-477A-8EAE-73953D3E383D}.Debug - NuGet Packages|Any CPU.Build.0 = Debug|Any CPU
{183B3324-4CFF-477A-8EAE-73953D3E383D}.Debug - NuGet Packages|Any CPU.ActiveCfg = Debug - NuGet Packages|Any CPU
{183B3324-4CFF-477A-8EAE-73953D3E383D}.Debug - NuGet Packages|Any CPU.Build.0 = Debug - NuGet Packages|Any CPU
{183B3324-4CFF-477A-8EAE-73953D3E383D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{183B3324-4CFF-477A-8EAE-73953D3E383D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{183B3324-4CFF-477A-8EAE-73953D3E383D}.Documentation|Any CPU.ActiveCfg = Documentation|Any CPU

Просмотреть файл

@ -10,9 +10,9 @@ namespace Microsoft.Bot.Builder.Ai.LUIS
public class IntentData
{
/// <summary>
/// Optional confidence in intent classification.
/// Confidence in intent classification.
/// </summary>
[JsonProperty("score")]
public double? Score { get; set; }
public double Score { get; set; }
}
}

Просмотреть файл

@ -84,7 +84,9 @@ namespace Microsoft.Bot.Builder.Ai.LUIS
private static JObject GetIntents(LuisResult luisResult)
{
return luisResult.Intents != null ?
JObject.FromObject(luisResult.Intents.ToDictionary(i => NormalizedIntent(i.Intent), i => new JObject(new JProperty("score", i.Score ?? 0)))) :
JObject.FromObject(luisResult.Intents.ToDictionary(
i => NormalizedIntent(i.Intent),
i => new JObject(new JProperty("score", i.Score ?? 0)))) :
new JObject { [NormalizedIntent(luisResult.TopScoringIntent.Intent)] = new JProperty("score", luisResult.TopScoringIntent.Score ?? 0 )};
}

Просмотреть файл

@ -3,31 +3,31 @@
"alteredText": null,
"intents": {
"EntityTests": {
"score": 0.925834656
"score": 0.9109604
},
"Weather_GetForecast": {
"score": 0.120854057
"score": 0.121306971
},
"Travel": {
"score": 0.0274882857
"score": 0.0273477212
},
"None": {
"score": 0.0162557829
},
"Delivery": {
"score": 0.00454941159
"score": 0.01634177
},
"SpecifyName": {
"score": 0.00400305446
"score": 0.00471411133
},
"Delivery": {
"score": 0.0045661875
},
"Help": {
"score": 0.00191241584
"score": 0.0020663538
},
"Cancel": {
"score": 0.0008715141
"score": 0.0009918148
},
"Greeting": {
"score": 0.000153755536
"score": 0.000153730318
}
},
"entities": {
@ -37,7 +37,7 @@
"startIndex": 0,
"endIndex": 69,
"text": "http : / / foo . com is where you can fly from seattle to dallas via denver",
"score": 0.8777316
"score": 0.928562
}
]
},
@ -49,7 +49,7 @@
"startIndex": 63,
"endIndex": 69,
"text": "denver",
"score": 0.8265362
"score": 0.81954056
}
],
"builtin_url": [
@ -65,7 +65,7 @@
"startIndex": 41,
"endIndex": 48,
"text": "seattle",
"score": 0.9893058
"score": 0.975187838
}
],
"To": [
@ -73,7 +73,7 @@
"startIndex": 52,
"endIndex": 58,
"text": "dallas",
"score": 0.987623036
"score": 0.984576344
}
]
},
@ -96,53 +96,53 @@
"query": "http://foo.com is where you can fly from seattle to dallas via denver",
"topScoringIntent": {
"intent": "EntityTests",
"score": 0.925834656,
"score": 0.9109604,
"actions": null
},
"intents": [
{
"intent": "EntityTests",
"score": 0.925834656,
"score": 0.9109604,
"actions": null
},
{
"intent": "Weather.GetForecast",
"score": 0.120854057,
"score": 0.121306971,
"actions": null
},
{
"intent": "Travel",
"score": 0.0274882857,
"score": 0.0273477212,
"actions": null
},
{
"intent": "None",
"score": 0.0162557829,
"actions": null
},
{
"intent": "Delivery",
"score": 0.00454941159,
"score": 0.01634177,
"actions": null
},
{
"intent": "SpecifyName",
"score": 0.00400305446,
"score": 0.00471411133,
"actions": null
},
{
"intent": "Delivery",
"score": 0.0045661875,
"actions": null
},
{
"intent": "Help",
"score": 0.00191241584,
"score": 0.0020663538,
"actions": null
},
{
"intent": "Cancel",
"score": 0.0008715141,
"score": 0.0009918148,
"actions": null
},
{
"intent": "Greeting",
"score": 0.000153755536,
"score": 0.000153730318,
"actions": null
}
],
@ -153,7 +153,7 @@
"type": "City::To",
"startIndex": 52,
"endIndex": 57,
"score": 0.987623036,
"score": 0.984576344,
"resolution": null
},
{
@ -162,7 +162,7 @@
"type": "City::From",
"startIndex": 41,
"endIndex": 47,
"score": 0.9893058,
"score": 0.975187838,
"resolution": null
},
{
@ -171,7 +171,7 @@
"type": "City",
"startIndex": 63,
"endIndex": 68,
"score": 0.8265362,
"score": 0.81954056,
"resolution": null
},
{
@ -180,7 +180,7 @@
"type": "Composite2",
"startIndex": 0,
"endIndex": 68,
"score": 0.8777316,
"score": 0.928562,
"resolution": null
},
{

Просмотреть файл

@ -3,31 +3,31 @@
"alteredText": null,
"intents": {
"Weather_GetForecast": {
"score": 0.8995508
"score": 0.90011555
},
"EntityTests": {
"score": 0.6866408
"score": 0.605760336
},
"None": {
"score": 0.05172678
"score": 0.0516544022
},
"Travel": {
"score": 0.00585644227
},
"Delivery": {
"score": 0.00387669052
"score": 0.00608200533
},
"SpecifyName": {
"score": 0.00387319084
"score": 0.00516258739
},
"Delivery": {
"score": 0.003910708
},
"Help": {
"score": 0.00177787163
"score": 0.00192748313
},
"Cancel": {
"score": 0.000588835566
"score": 0.0006681665
},
"Greeting": {
"score": 0.000149518673
"score": 0.000149154512
}
},
"entities": {
@ -37,7 +37,7 @@
"startIndex": 0,
"endIndex": 66,
"text": "http : / / foo . com is where you can get a weather forecast for seattle",
"score": 0.6154704
"score": 0.704801857
}
]
},
@ -57,7 +57,7 @@
"startIndex": 59,
"endIndex": 66,
"text": "seattle",
"score": 0.896951556
"score": 0.8969903
}
]
},
@ -74,53 +74,53 @@
"query": "http://foo.com is where you can get a weather forecast for seattle",
"topScoringIntent": {
"intent": "Weather.GetForecast",
"score": 0.8995508,
"score": 0.90011555,
"actions": null
},
"intents": [
{
"intent": "Weather.GetForecast",
"score": 0.8995508,
"score": 0.90011555,
"actions": null
},
{
"intent": "EntityTests",
"score": 0.6866408,
"score": 0.605760336,
"actions": null
},
{
"intent": "None",
"score": 0.05172678,
"score": 0.0516544022,
"actions": null
},
{
"intent": "Travel",
"score": 0.00585644227,
"actions": null
},
{
"intent": "Delivery",
"score": 0.00387669052,
"score": 0.00608200533,
"actions": null
},
{
"intent": "SpecifyName",
"score": 0.00387319084,
"score": 0.00516258739,
"actions": null
},
{
"intent": "Delivery",
"score": 0.003910708,
"actions": null
},
{
"intent": "Help",
"score": 0.00177787163,
"score": 0.00192748313,
"actions": null
},
{
"intent": "Cancel",
"score": 0.000588835566,
"score": 0.0006681665,
"actions": null
},
{
"intent": "Greeting",
"score": 0.000149518673,
"score": 0.000149154512,
"actions": null
}
],
@ -131,7 +131,7 @@
"type": "Composite2",
"startIndex": 0,
"endIndex": 65,
"score": 0.6154704,
"score": 0.704801857,
"resolution": null
},
{
@ -149,7 +149,7 @@
"type": "Weather.Location",
"startIndex": 59,
"endIndex": 65,
"score": 0.896951556,
"score": 0.8969903,
"resolution": null
}
],

Просмотреть файл

@ -3,31 +3,31 @@
"AlteredText": null,
"Intents": {
"Travel": {
"score": 0.157086775
"score": 0.162418559
},
"EntityTests": {
"score": 0.0609059036
"score": 0.0377123132
},
"Weather_GetForecast": {
"score": 0.03481206
"score": 0.0347674862
},
"None": {
"score": 0.0343931019
"score": 0.0343242735
},
"Delivery": {
"score": 0.00626269029
"score": 0.00620134128
},
"Cancel": {
"score": 0.00511110062
"score": 0.00543635339
},
"SpecifyName": {
"score": 0.00481634
"score": 0.00537072029
},
"Help": {
"score": 0.00365795242
"score": 0.00372485374
},
"Greeting": {
"score": 0.00115857017
"score": 0.00119818107
}
},
"Entities": {
@ -59,7 +59,7 @@
"startIndex": 20,
"endIndex": 26,
"text": "dallas",
"score": 0.9075733
"score": 0.9011441
}
],
"From": [
@ -67,7 +67,7 @@
"startIndex": 9,
"endIndex": 16,
"text": "seattle",
"score": 0.9814744
"score": 0.9574383
}
],
"Airline": [
@ -87,53 +87,53 @@
"query": "fly from seattle to dallas at 3pm on delta",
"topScoringIntent": {
"intent": "Travel",
"score": 0.157086775,
"score": 0.162418559,
"actions": null
},
"intents": [
{
"intent": "Travel",
"score": 0.157086775,
"score": 0.162418559,
"actions": null
},
{
"intent": "EntityTests",
"score": 0.0609059036,
"score": 0.0377123132,
"actions": null
},
{
"intent": "Weather.GetForecast",
"score": 0.03481206,
"score": 0.0347674862,
"actions": null
},
{
"intent": "None",
"score": 0.0343931019,
"score": 0.0343242735,
"actions": null
},
{
"intent": "Delivery",
"score": 0.00626269029,
"score": 0.00620134128,
"actions": null
},
{
"intent": "Cancel",
"score": 0.00511110062,
"score": 0.00543635339,
"actions": null
},
{
"intent": "SpecifyName",
"score": 0.00481634,
"score": 0.00537072029,
"actions": null
},
{
"intent": "Help",
"score": 0.00365795242,
"score": 0.00372485374,
"actions": null
},
{
"intent": "Greeting",
"score": 0.00115857017,
"score": 0.00119818107,
"actions": null
}
],
@ -157,7 +157,7 @@
"type": "City::To",
"startIndex": 20,
"endIndex": 25,
"score": 0.9075733,
"score": 0.9011441,
"resolution": null
},
{
@ -166,7 +166,7 @@
"type": "City::From",
"startIndex": 9,
"endIndex": 15,
"score": 0.9814744,
"score": 0.9574383,
"resolution": null
},
{

Просмотреть файл

@ -3,31 +3,31 @@
"AlteredText": null,
"Intents": {
"Weather_GetForecast": {
"score": 0.8995508
"score": 0.90011555
},
"EntityTests": {
"score": 0.6866408
"score": 0.605760336
},
"None": {
"score": 0.05172678
"score": 0.0516544022
},
"Travel": {
"score": 0.00585644227
},
"Delivery": {
"score": 0.00387669052
"score": 0.00608200533
},
"SpecifyName": {
"score": 0.00387319084
"score": 0.00516258739
},
"Delivery": {
"score": 0.003910708
},
"Help": {
"score": 0.00177787163
"score": 0.00192748313
},
"Cancel": {
"score": 0.000588835566
"score": 0.0006681665
},
"Greeting": {
"score": 0.000149518673
"score": 0.000149154512
}
},
"Entities": {
@ -70,7 +70,7 @@
"startIndex": 59,
"endIndex": 66,
"text": "seattle",
"score": 0.896951556
"score": 0.8969903
}
]
}
@ -91,7 +91,7 @@
"startIndex": 0,
"endIndex": 66,
"text": "http : / / foo . com is where you can get a weather forecast for seattle",
"score": 0.6154704
"score": 0.704801857
}
]
}
@ -100,53 +100,53 @@
"query": "http://foo.com is where you can get a weather forecast for seattle",
"topScoringIntent": {
"intent": "Weather.GetForecast",
"score": 0.8995508,
"score": 0.90011555,
"actions": null
},
"intents": [
{
"intent": "Weather.GetForecast",
"score": 0.8995508,
"score": 0.90011555,
"actions": null
},
{
"intent": "EntityTests",
"score": 0.6866408,
"score": 0.605760336,
"actions": null
},
{
"intent": "None",
"score": 0.05172678,
"score": 0.0516544022,
"actions": null
},
{
"intent": "Travel",
"score": 0.00585644227,
"actions": null
},
{
"intent": "Delivery",
"score": 0.00387669052,
"score": 0.00608200533,
"actions": null
},
{
"intent": "SpecifyName",
"score": 0.00387319084,
"score": 0.00516258739,
"actions": null
},
{
"intent": "Delivery",
"score": 0.003910708,
"actions": null
},
{
"intent": "Help",
"score": 0.00177787163,
"score": 0.00192748313,
"actions": null
},
{
"intent": "Cancel",
"score": 0.000588835566,
"score": 0.0006681665,
"actions": null
},
{
"intent": "Greeting",
"score": 0.000149518673,
"score": 0.000149154512,
"actions": null
}
],
@ -157,7 +157,7 @@
"type": "Composite2",
"startIndex": 0,
"endIndex": 65,
"score": 0.6154704,
"score": 0.704801857,
"resolution": null
},
{
@ -175,7 +175,7 @@
"type": "Weather.Location",
"startIndex": 59,
"endIndex": 65,
"score": 0.896951556,
"score": 0.8969903,
"resolution": null
}
],