microsoft / Cognitive-LUIS-Windows

Windows (.Net) SDK for the Microsoft Language Understanding Intelligent Service API, part of Congitive Services
www.microsoft.com/cognitive-services/en-us/language-understanding-intelligent-service-luis
Other
134 stars 78 forks source link

Enabling Bing Spell Check on a LUIS app #82

Open 14geronimo opened 6 years ago

14geronimo commented 6 years ago

There is a lack of clarity over the approach to enable Bing Spell Check with a LUIS app, assuming we use the packages Microsoft.Bot.Builder.Luis.* in a C# web application, classes LuisModel and LuisDialog in particular.

Reading through the litterature online, it looks like there was an old method with "My key" and "External Keys" on LUIS UI, as described in issue #51, to which most other posts on the topic are pointing. But that menu and method are gone AFAIK. There is only one discernible pattern with these posts, and that is that they're all being closed by @cleemullins (a moderator?) without any clear explanation as to why they were being closed, esp. those discussions in full swing.

So let's reopen than one shall we :) What's the correct way to declare to my bot that it's using spell checked, with this code as starting point?

[LuisModel("APP-KEY", "SUB-KEY", domain: "westeurope.api.cognitive.microsoft.com")]
[Serializable]
public class LUISDialog : LuisDialog<RoomReservation>

Now I know that I can declare a "spellCheck" parameter to the LuisModel attribute above. I also know about the URL query string (which I've tested, it works just fine). And I know all about calling this URL programmatically as explained in the API doc with sample code to get predictions from endpoint, but this is not what I'm talking about.

What I need to do is configure my LUISDialog class above with the Bing Spell Check key somehow, so that the Microsoft package can work its magic behind the scene. The LuisModel class supports the "spellCheck" boolean, but it hasn't got the equivalent of a "bing-spell-check-subscription-key" parameter. Is Bing Spell Check still supported with LuisDialog implementations?