How to create mini search engine by using ML.Net with c#?

maifs 40 Reputation points
2023-04-15T11:30:57.8633333+00:00

I have some medicine names in Sql server database table. Now I want to create some feature by using ML.Net c#? I am totally new to ML.NET.

What I want is that ASAP user try to write anything in my textbox (.Aspx page), my ML.Net feature should suggest the user.

for example : user write "penadol 40 mg" or "panadl" or "Pandole" and there can be some other patterns as well. My ML.Net logic would suggest the user "Panadol" by finding from the database. Something, very similar to English spell check feature or mini search engine Now I am going to tell you about the structure of development. Currently , my application is developed in aspx , As soon as user 'll enter some medicine name in the textbox, an ajax request 'll go to the server and 'll display the suggested medicine list.

Ajax call can be requested to an API which 'll be used this ML.NET developed feature.

And this API can be developed in any .Net/ .Net Core Framework .

Please guide me . Thank you very much.

Please ask anything if want to further know anything from me.

Developer technologies ASP.NET ASP.NET Core
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-04-15T16:54:11.8966667+00:00

    The ml api to a trained model is pretty simple.

    Most of your work will be training the model. This will require a large list of the correct words and matching list of alternate spellings which the correct spelling. Then train the ai model by rating its match, that is, did the model return the correct spelling. The larger the dataset the better the matching.

    Here is an article on building an api model for fuzzy matching.

    https://towardsdatascience.com/fuzzy-name-matching-with-machine-learning-f09895dce7b4

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.