Back

Explore Courses Blog Tutorials Interview Questions
+3 votes
2 views
in Machine Learning by (47.6k points)

Many search engines use this impressive ‘Did you mean: word’ algorithms to correct the incorrect word and recommend that word with the modified query to the user. I want to know how this algorithm works.

closed

1 Answer

+2 votes
by (33.1k points)
edited by
 
Best answer

Google can almost instantaneously, offer spell correction in every language.

  • When we search a query, Sometimes we misspell a word on google.

  • Instead of asking to rewrite the word again, google recorrects the word for us.

  • Google uses a highly accurate algorithm for that.

  • It helps us to redirect to correct links directly.

Google uses an interesting ‘spell-checking’ algorithm with a quite high accuracy. Google uses masses of data for Natural Language Processing (NLP). Spelling correction is an application of NLP.

This algorithm needs data preparation from large chunks of data because it evaluates the most used words. It counts the occurrence of each word.

Word searching works by defining the edit distance. Edit distance means how many recent most popular words, related to search, needs to be evaluated. If edit distance is 0-2, then most recent 2 words will be evaluated.

In this way, Google’s ‘showing results for’ or ‘Did you mean’ algorithm works. More you can check here by Spelling corrector implemented and described by Google's Director of Research Peter Norvig.

Watch this video of google wave ( @ 44m 06s ) that shows how google automatically corrects the spelling.

If you want to know the real-world applications of Machine Learning then you can go through this video:

Browse Categories

...