concepts.language.ccg.learning.auto_research_novel_words#

auto_research_novel_words(base_learning_func, ccg, sentence, max_research, **kwargs)[source]#

A helper function that automatically perform re-search for known words in a sentence.

Parameters:
  • base_learning_func (Callable) – the base learning function to be used for learning a CCG lexicon from a sentence. Can be by_parsing(), or by_parsing_with_lexicon_gen(), or by_grounding().

  • ccg (CCG) – the CCG grammar.

  • sentence (str | Iterable[str]) – the sentence to be parsed.

  • max_research (int) – the maximum number of words whose lexicon will be re-searched.

  • **kwargs – additional keyword arguments to be passed to the base_learning_func.

Return type:

List[CCGLearningResult]