suggest_lexiconT_suggest_lexiconSuggestLexiconSuggestLexiconsuggest_lexicon (Operator)

Name

suggest_lexiconT_suggest_lexiconSuggestLexiconSuggestLexiconsuggest_lexicon — 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)

def suggest_lexicon(lexicon_handle: HHandle, word: str) -> Tuple[str, int]

Beschreibung

suggest_lexiconsuggest_lexiconSuggestLexiconSuggestLexiconSuggestLexiconsuggest_lexicon vergleicht WordWordWordWordwordword mit allen Wörtern im Lexikon und berechnet die minimale Anzahl von Editieroperationen NumCorrectionsNumCorrectionsNumCorrectionsNumCorrectionsnumCorrectionsnum_corrections, welche nötig sind um WordWordWordWordwordword 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 SuggestionSuggestionSuggestionSuggestionsuggestionsuggestion 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

LexiconHandleLexiconHandleLexiconHandleLexiconHandlelexiconHandlelexicon_handle (input_control)  lexicon HLexicon, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle des Lexikons.

WordWordWordWordwordword (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Nachzuschlagendes Wort.

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

SuggestionSuggestionSuggestionSuggestionsuggestionsuggestion (output_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Ähnlichstes Wort aus dem Lexikon.

NumCorrectionsNumCorrectionsNumCorrectionsNumCorrectionsnumCorrectionsnum_corrections (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Unterschied der Wörter in Editieroperationen

Alternativen

lookup_lexiconlookup_lexiconLookupLexiconLookupLexiconLookupLexiconlookup_lexicon

Siehe auch

create_lexiconcreate_lexiconCreateLexiconCreateLexiconCreateLexiconcreate_lexicon

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