forked from microsoft/BotBuilder-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CSharp-LUIS] Update to Microsoft.Bot.Builder v3.5.0
- Loading branch information
Showing
12 changed files
with
102 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
} | ||
], | ||
"composites": [], | ||
"closedLists": [], | ||
"bing_entities": [ | ||
"geography" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace LuisBot.Services | ||
{ | ||
public class BingSpellCheckError | ||
{ | ||
public int StatusCode { get; set; } | ||
|
||
public string Message { get; set; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
CSharp/intelligence-LUIS/Services/BingSpellCheckFlaggedToken.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace LuisBot.Services | ||
{ | ||
public class BingSpellCheckFlaggedToken | ||
{ | ||
public int Offset { get; set; } | ||
|
||
public string Token { get; set; } | ||
|
||
public string Type { get; set; } | ||
|
||
public BingSpellCheckSuggestion[] Suggestions { get; set; } | ||
} | ||
} |
29 changes: 6 additions & 23 deletions
29
CSharp/intelligence-LUIS/Services/BingSpellCheckResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,14 @@ | ||
namespace LuisBot.Services | ||
{ | ||
public class BingSpellCheckResponse | ||
{ | ||
public string _type { get; set; } | ||
|
||
public Flaggedtoken[] flaggedTokens { get; set; } | ||
|
||
public Error error { get; set; } | ||
} | ||
using Newtonsoft.Json; | ||
|
||
public class Flaggedtoken | ||
public class BingSpellCheckResponse | ||
{ | ||
public int offset { get; set; } | ||
public string token { get; set; } | ||
public string type { get; set; } | ||
public Suggestion[] suggestions { get; set; } | ||
} | ||
[JsonProperty("_type")] | ||
public string Type { get; set; } | ||
|
||
public class Suggestion | ||
{ | ||
public string suggestion { get; set; } | ||
public int score { get; set; } | ||
} | ||
public BingSpellCheckFlaggedToken[] FlaggedTokens { get; set; } | ||
|
||
public class Error | ||
{ | ||
public int statusCode { get; set; } | ||
public string message { get; set; } | ||
public BingSpellCheckError Error { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
CSharp/intelligence-LUIS/Services/BingSpellCheckSuggestion.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace LuisBot.Services | ||
{ | ||
public class BingSpellCheckSuggestion | ||
{ | ||
public string Suggestion { get; set; } | ||
|
||
public double Score { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Autofac" version="3.5.2" targetFramework="net46" /> | ||
<package id="Autofac" version="4.2.1" targetFramework="net46" /> | ||
<package id="Chronic.Signed" version="0.3.2" targetFramework="net46" /> | ||
<package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net46" /> | ||
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net46" /> | ||
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net46" /> | ||
<package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net46" /> | ||
<package id="Microsoft.Bot.Builder" version="3.2.1" targetFramework="net46" /> | ||
<package id="Microsoft.IdentityModel.Protocol.Extensions" version="1.0.2.206221351" targetFramework="net46" /> | ||
<package id="Microsoft.Rest.ClientRuntime" version="2.3.2" targetFramework="net46" /> | ||
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="3.2.1" targetFramework="net46" /> | ||
<package id="Newtonsoft.Json" version="8.0.3" targetFramework="net46" /> | ||
<package id="System.IdentityModel.Tokens.Jwt" version="4.0.2.206221351" targetFramework="net46" /> | ||
<package id="Microsoft.Bot.Builder" version="3.5.0" targetFramework="net46" /> | ||
<package id="Microsoft.IdentityModel.Protocol.Extensions" version="1.0.3.308261200" targetFramework="net46" /> | ||
<package id="Microsoft.Rest.ClientRuntime" version="2.3.4" targetFramework="net46" /> | ||
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="3.2.3" targetFramework="net46" /> | ||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net46" /> | ||
<package id="System.IdentityModel.Tokens.Jwt" version="4.0.3.308261200" targetFramework="net46" /> | ||
</packages> |