how to avoid the spelling mistakes while giving the input to custom question answering service in .net 6

lakshmi 611 Reputation points
2023-09-30T15:58:21.8+00:00

We are working on a bot project which uses Azure Custom question-answering service for KB. In a few scenarios, we get in appropriate answers for questions with spelling mistakes.

Can I get the details of best Nuget packages we can use to correct the spelling mistake? The Nuget package should support .net 6 also.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,443 questions
{count} vote

Accepted answer
  1. YutongTie-MSFT 46,996 Reputation points
    2023-09-30T18:48:51.2933333+00:00

    @lakshmi

    Thanks for reaching out to us, I think you are looking for a Spelling check package before you input your question to the bot.

    To avoid spelling mistakes while giving input to a custom question answering service in .NET 6, you can use a spell-checking library or API to correct the spelling of the input text before sending it to the question answering service. Here are some NuGet packages that you can use for spell-checking in .NET 6:

    NHunspell: This is a .NET wrapper for the Hunspell spell-checking library. It provides support for multiple languages and can be used to check the spelling of individual words or entire documents.

    NetSpell: This is a spell-checking library for .NET that provides support for multiple languages and can be used to check the spelling of individual words or entire documents.

    Aspell.NET: This is a .NET wrapper for the Aspell spell-checking library. It provides support for multiple languages and can be used to check the spelling of individual words or entire documents.

    Microsoft Bing Spell Check API: This is a cloud-based spell-checking API provided by Microsoft. It can be used to check the spelling of individual words or entire documents and provides support for multiple languages.

    To use any of these NuGet packages in your .NET 6 project, you can add them to your project using the NuGet Package Manager in Visual Studio or by adding the package reference to your project file. Once you have added the package, you can use the API provided by the package to check the spelling of the input text before sending it to the question answering service.

    Please let me know if you have any questions.

    Regards,

    Yutong

    0 comments No comments

0 additional answers

Sort by: Most helpful