concepts.language.neural_ccg.search.NeuralCCGLexiconEnumerativeSearcher#

class NeuralCCGLexiconEnumerativeSearcher[source]#

Bases: NeuralCCGLexiconSearcherBase

An enumerative neural CCG lexicon searcher. This function takes a list of candidate function expressions, and generates a list of candidate lexicon entries.

Methods

gen([init_executor, allow_none_lexicon, ...])

Generate a list of candidate lexicons.

__init__(candidate_expressions, executor)[source]#

Initialize the searcher.

Parameters:
__new__(**kwargs)#
gen(init_executor=True, allow_none_lexicon=False, permute_arguments=False, semantics_hash=None)[source]#

Generate a list of candidate lexicons.

Returns:

A list of candidate lexicons, as a list of NeuralCCGLexiconSearchResult.

Parameters:
Return type:

List[NeuralCCGLexiconSearchResult]