concepts.language.neural_ccg.search.gen_lexicon_search_results_from_functions#
- gen_lexicon_search_results_from_functions(functions, executor, init_executor=True, allow_none_lexicon=False)[source]#
Generate lexicon search results from a given list of functions and the corresponding linearization strings.
- Parameters:
functions (Iterable[Tuple[ConstantExpression | Function | FunctionApplicationExpression, str]]) – a list of functions and the corresponding linearization strings.
executor (FunctionDomainExecutor) – the executor for the domain.
init_executor (bool) – whether to initialize the executor.
allow_none_lexicon (bool) – whether to allow None lexicon.
- Returns:
a list of lexicon search results.
- Return type: