Operator Reference

lookup_lexiconT_lookup_lexiconLookupLexiconLookupLexiconlookup_lexicon (Operator)

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_lexiconLookupLexiconLookupLexiconlookup_lexicon checks whether WordWordWordwordword is contained in the lexicon LexiconHandleLexiconHandleLexiconHandlelexiconHandlelexicon_handle, and returns 1 in FoundFoundFoundfoundfound if the word is found, otherwise 0.

Execution Information

  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).
  • Multithreading scope: global (may be called from any thread).
  • Processed without parallelization.

Parameters

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

Handle of the lexicon.

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

Word to be looked up.

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

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

Result of the search.

Alternatives

suggest_lexiconsuggest_lexiconSuggestLexiconSuggestLexiconsuggest_lexicon

See also

create_lexiconcreate_lexiconCreateLexiconCreateLexiconcreate_lexicon

Module

OCR/OCV