开发者

Auto correction , auto complete features

开发者 https://www.devze.com 2023-01-21 16:14 出处:网络
Hii , We see suggestions wh开发者_运维问答en we type a word in Ms-word , google etc... How do they do that ?

Hii ,

We see suggestions wh开发者_运维问答en we type a word in Ms-word , google etc... How do they do that ?

I would like to know how the techniqueslike auto correct , auto complete , spell checking etc.. are performed . HOw are the words actually stored... what algorithms are followed ... ???

Any links that suggest a possible way are welcome,


Here are some data structures that are especially useful for working with (and finding) strings.

  • Tries
  • Suffix trees
  • Directed acyclic word graphs
  • Suffix array
  • Patricia trie

These can be especially useful for auto-completion.

Here's a simple spell checker written in Python with a bit of digression on how it works.

In order to build a dictionary, you could "parse" e.g. wikipedia to collect known words.

0

精彩评论

暂无评论...
验证码 换一张
取 消