How do I approximate “Did you mean?” without using Google?

后端 未结 7 2166
甜味超标
甜味超标 2021-01-31 10:13

I am aware of the duplicates of this question:

  • How does the Google “Did you mean?” Algorithm work?
  • How do you implement a “Did you mean”?
  • ... and
7条回答
  •  北荒
    北荒 (楼主)
    2021-01-31 10:36

    From the horse's mouth: How to Write a Spelling Corrector

    The interesting thing here is how you don't need a bunch of query logs to approximate the algorithm. You can use a corpus of mostly-correct text (like a bunch of books from Project Gutenberg).

提交回复
热议问题