concepts.language.neural_ccg.search.gen_lexicon_search_results_from_syntax_and_semantics#
- gen_lexicon_search_results_from_syntax_and_semantics(results, executor, init_executor=True)[source]#
Generate lexicon search results from a given list of syntax and semantic forms.
- Parameters:
results (Iterable[Tuple[NeuralCCGSyntaxType, None | ConstantExpression | Function | FunctionApplicationExpression]]) – a list of syntax and semantic forms.
executor (FunctionDomainExecutor) – the executor for the domain.
init_executor (bool) – whether to initialize the executor.
- Returns:
A list of lexicon search results.
- Return type: