开发者

Auto correction , auto complete features

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜