lookup_lexiconlookup_lexiconLookupLexiconLookupLexiconlookup_lexiconT_lookup_lexicon
Short description
lookup_lexiconlookup_lexiconLookupLexiconLookupLexiconlookup_lexiconT_lookup_lexicon — Check if a word is contained in a lexicon.
Signature
lookup_lexicon( lexicon LexiconHandle, string Word, out integer Found )lookup_lexicon( : : LexiconHandle, Word : Found )void LookupLexicon( const HTuple& LexiconHandle, const HTuple& Word, HTuple* Found )static void HOperatorSet.LookupLexicon( HTuple lexiconHandle, HTuple word, out HTuple found )def lookup_lexicon( lexicon_handle: HHandle, word: str ) -> int
Herror T_lookup_lexicon( 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)
int HLexicon.LookupLexicon( string word )
Description
lookup_lexiconLookupLexicon checks whether Wordwordword is
contained in the lexicon LexiconHandlelexiconHandlelexicon_handle, and returns
1 in Foundfoundfound 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
LexiconHandlelexiconHandlelexicon_handle (input_control) lexicon → (handle)(handle)HTuple (HHandle)HLexicon, HTuple (IntPtr)HHandleHtuple (handle)
Handle of the lexicon.
Wordwordword (input_control) string → (string)(string)HTuple (HString)HTuple (string)strHtuple (char*)
Word to be looked up.
Default: 'word'"word"
Foundfoundfound (output_control) integer → (integer)(integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)
Result of the search.
Combinations with other operators
Combinations
Alternatives
suggest_lexiconSuggestLexicon
See also
create_lexiconCreateLexicon
Module
OCR/OCV