question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Language Understanding (LUIS) V3 doesn't support Bing Spell Check API

See original GitHub issue

Version

“botbuilder”: “~4.15.0”, “botbuilder-ai”: “~4.15.0”,

Describe the bug

I try to improve LUIS intents prediction accuracy. Because there is an issue when missing one letter leads LUIS to a wrong intent. I use the tutorial, but still I don’t get the expected value “alteredQuery” in the JSON returned form LUIS. this is how I use it:

const luisConfig: LuisApplication = {
    applicationId: [APP_ID_GOES_HERE],
    endpointKey: [KEY_GOES_HERE],
    endpoint: [ENDPOINT_GOES_HERE],
};
const recognizerOptions: LuisRecognizerOptionsV2 = {
    apiVersion: 'v2',
    bingSpellCheckSubscriptionKey: [KEY_GOES_HERE];
    includeAllIntents: true,
    log: true,
    spellCheck: true,
    log: true,
    includeInstanceData: true
};
const luisRecognizer = new LuisRecognizer(luisConfig, recognizerOptions, true);

Expected behavior

As per documentation I should get the response as follows:

"query": "bouk me a fliht to kayro",
  "prediction": {
    "alteredQuery": "book me a flight to cairo",
    "topIntent": "book a flight",
    "intents": {
      "book a flight": {
        "score": 0.9480589
      }
      "None": {
        "score": 0.0332136229
      }
    },
    "entities": {}
  }
}

But the reality is different - there is no “alteredQuery”

"query": "bouk me a fliht to kayro",
  "prediction": {
    "topIntent": "book a flight",
    "intents": {
      "book a flight": {
        "score": 0.9480589
      }
      "None": {
        "score": 0.0332136229
      }
    },
    "entities": {}
  }
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
anishprasad01commented, May 26, 2022

Feel free to open a ticket with LUIS and leave your feedback with them. In the meantime, since we have identified a workaround, I am going to go ahead and close this issue. Should you run into further issues, feel free to comment and we can reopen it. If you have new problems in the future, please open a ticket in the appropriate repository.

0reactions
mountjucommented, May 26, 2022

There are special options for the proper work with Bing Spell Check API in SDK (bingSpellCheckSubscriptionKey, spellCheck) but they couldn’t be used at all…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Correct misspelled words - LUIS - Azure Cognitive Services
The V3 prediction API now supports the Bing Spellcheck API. Add spell checking to your application by including the key to your Bing...
Read more >
spell check is not working for the api call as it throws an ...
Bing spell check : requests to the query prediction endpoint with the &spellCheck=true&bing-spell-check-subscription-key={bingKey} query string ...
Read more >
How to enable Bing Spell check in LUIS API 2.0?
I'm trying to use the Bing Spell Check feature on the LUIS but it doesn't seem to work. URL: https://westus.api.cognitive.microsoft.com/luis ...
Read more >
Microsoft Bing Spell Check API Reviews & Product Details
Microsoft Bing Spell Check API is a tool that help users correct spelling errors, recognize the difference among names, brand names, and slang, ......
Read more >
Setting Up Bing Spell Check API | packtpub.com - YouTube
This video tutorial has been taken from Implementing Azure Cognitive Services for Language. You can learn more and buy the full video course ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found