suggest_lexicon — 在词典里找一个相似的词。
suggest_lexicon( : : LexiconHandle, Word : Suggestion, NumCorrections)
suggest_lexicon compares Word to all words in
the lexicon and calculates the minimum number of edit operations
NumCorrections required to transform Word
into a word from the lexicon. Valid edit operations are the
insertion, deletion and replacement of characters. The most
similar word found in the lexicon is returned in Suggestion.
If there are multiple words with the same minimum number of
corrections, only the first of those words is returned.
LexiconHandle (输入控制) lexicon → (handle)
Handle of the lexicon.
Word (输入控制) string → (string)
Word to be looked up.
默认值: 'word'
Suggestion (输出控制) string → (string)
Most similar word found in the lexicon.
NumCorrections (输出控制) integer → (integer)
Difference between the words in edit operations.
Vladimir I. Levenshtein, Binary codes capable of correcting deletions, insertions, and reversals, Doklady Akademii Nauk SSSR, 163(4):845-848, 1965 (Russian). English translation in Soviet Physics Doklady, 10(8):707-710, 1966.
光学字符识别/光学字符验证