lookup_lexiconT_lookup_lexiconLookupLexiconLookupLexiconlookup_lexicon (Operator)

Name

lookup_lexiconT_lookup_lexiconLookupLexiconLookupLexiconlookup_lexicon — Check if a word is contained in a lexicon.

Signature

lookup_lexicon( : : LexiconHandle, Word : Found)

Herror T_lookup_lexicon(const Htuple LexiconHandle, const Htuple Word, Htuple* Found)

void LookupLexicon(const HTuple& LexiconHandle, const HTuple& Word, HTuple* Found)

Hlong HLexicon::LookupLexicon(const HString& Word) const

Hlong HLexicon::LookupLexicon(const char* Word) const

Hlong HLexicon::LookupLexicon(const wchar_t* Word) const   (Windows only)

static void HOperatorSet.LookupLexicon(HTuple lexiconHandle, HTuple word, out HTuple found)

int HLexicon.LookupLexicon(string word)

def lookup_lexicon(lexicon_handle: HHandle, word: str) -> int

Description

lookup_lexiconlookup_lexiconLookupLexiconLookupLexiconLookupLexiconlookup_lexicon checks whether WordWordWordWordwordword is contained in the lexicon LexiconHandleLexiconHandleLexiconHandleLexiconHandlelexiconHandlelexicon_handle, and returns 1 in FoundFoundFoundFoundfoundfound if the word is found, otherwise 0.

Execution Information

Parameters

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

Handle of the lexicon.

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

Word to be looked up.

Default value: 'word' "word" "word" "word" "word" "word"

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

Result of the search.

Alternatives

suggest_lexiconsuggest_lexiconSuggestLexiconSuggestLexiconSuggestLexiconsuggest_lexicon

See also

create_lexiconcreate_lexiconCreateLexiconCreateLexiconCreateLexiconcreate_lexicon

Module

OCR/OCV