suggest_lexiconT_suggest_lexiconSuggestLexiconSuggestLexicon (Operator)

Name

suggest_lexiconT_suggest_lexiconSuggestLexiconSuggestLexicon — Finden eines ähnlichen Wortes in einem Lexikon.

Signatur

suggest_lexicon( : : LexiconHandle, Word : Suggestion, NumCorrections)

Herror T_suggest_lexicon(const Htuple LexiconHandle, const Htuple Word, Htuple* Suggestion, Htuple* NumCorrections)

void SuggestLexicon(const HTuple& LexiconHandle, const HTuple& Word, HTuple* Suggestion, HTuple* NumCorrections)

HString HLexicon::SuggestLexicon(const HString& Word, Hlong* NumCorrections) const

HString HLexicon::SuggestLexicon(const char* Word, Hlong* NumCorrections) const

HString HLexicon::SuggestLexicon(const wchar_t* Word, Hlong* NumCorrections) const   (Nur Windows)

static void HOperatorSet.SuggestLexicon(HTuple lexiconHandle, HTuple word, out HTuple suggestion, out HTuple numCorrections)

string HLexicon.SuggestLexicon(string word, out int numCorrections)

Beschreibung

suggest_lexiconsuggest_lexiconSuggestLexiconSuggestLexiconSuggestLexicon vergleicht WordWordWordWordword mit allen Wörtern im Lexikon und berechnet die minimale Anzahl von Editieroperationen NumCorrectionsNumCorrectionsNumCorrectionsNumCorrectionsnumCorrections, welche nötig sind um WordWordWordWordword in ein Wort aus dem Lexikon zu überführen. Gültige Operationen sind das Einfügen, Löschen und Ersetzen von Zeichen. Das ähnlichste Wort aus dem Lexikon wird in SuggestionSuggestionSuggestionSuggestionsuggestion zurückgegeben. Wenn es mehrere Wörter mit derselben minimalen Anzahl von Korrekturen gibt, wird nur das erste dieser Wörter zurückgegeben.

Ausführungsinformationen

Parameter

LexiconHandleLexiconHandleLexiconHandleLexiconHandlelexiconHandle (input_control)  lexicon HLexicon, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle des Lexikons.

WordWordWordWordword (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Nachzuschlagendes Wort.

Defaultwert: 'word' "word" "word" "word" "word"

SuggestionSuggestionSuggestionSuggestionsuggestion (output_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Ähnlichstes Wort aus dem Lexikon.

NumCorrectionsNumCorrectionsNumCorrectionsNumCorrectionsnumCorrections (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Unterschied der Wörter in Editieroperationen

Alternativen

lookup_lexiconlookup_lexiconLookupLexiconLookupLexiconLookupLexicon

Siehe auch

create_lexiconcreate_lexiconCreateLexiconCreateLexiconCreateLexicon

Literatur

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.

Modul

OCR/OCV